]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bcachefs: Change allocations for ec stripes to blocking
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 15 Dec 2020 17:38:17 +0000 (12:38 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:50 +0000 (17:08 -0400)
commit2c40a2403e2b25aca38ba728385657dfca560a62
tree0d563547117adc34f4e0049b2d396cebdd0ddacd
parent81d8599e192e85fa7e01d8a6e8e4095177ff46a3
bcachefs: Change allocations for ec stripes to blocking

We don't want writes to not get erasure coded just because the allocator
temporarily wasn't keeping up.

However, it's not guaranteed that these allocations will ever succeed,
we can currently get stuck - especially if devices are different sizes -
we still have work to do in this area.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_foreground.c
fs/bcachefs/ec.c
fs/bcachefs/ec.h