diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-01-07 22:55:42 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:49 -0400 |
commit | d7dd3fb84f05a0d221be3979929706a4828fb252 (patch) | |
tree | bc7b4e773bebdd65fe51f2fe1a36579cc5ead714 /fs/bcachefs/lru.c | |
parent | 7c909f654bae57083a0965f105e52ac8737a0785 (diff) | |
download | lwn-d7dd3fb84f05a0d221be3979929706a4828fb252.tar.gz lwn-d7dd3fb84f05a0d221be3979929706a4828fb252.zip |
bcachefs: Fix rereplicate when we already have a cached pointer
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/lru.c')
0 files changed, 0 insertions, 0 deletions