diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-01-07 22:55:42 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-01-07 22:55:42 -0500 |
commit | 44aba34548e1cc6d0affb2c0af02c33c884b5706 (patch) | |
tree | 96bdf2b0e72fa4b832320c8729bf541a3e14afc0 /fs/bcachefs/trace.c | |
parent | 0fc4378a90017ccd2476f15617845112dbec8755 (diff) |
bcachefs: Fix rereplicate when we already have a cached pointerbcachefs-data_update_fix
When we need to add more replicas to an extent, it might be the case
that we already have a replica on every device, but some of them are
cached.
This patch fixes a bug where we'd spin on that extent because the write
path fails to find a device we can allocate from: we allow allocating
from devices that already have cached replicas on them, and change
bch2_data_update_index_update() to drop the cached replica if needed.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/trace.c')
0 files changed, 0 insertions, 0 deletions