diff options
author | Dongsheng Yang <dongsheng.yang@easystack.cn> | 2024-05-28 20:09:12 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-05-28 06:55:59 -0600 |
commit | a14a68b76954e73031ca6399abace17dcb77c17a (patch) | |
tree | 77ff48cb7db2dc996f3a56e91b04ac2b12fd3799 /rust/kernel/print.rs | |
parent | e993db2d6e5207f1ae061c2ac554ab1f714c741d (diff) | |
download | linux-stable-a14a68b76954e73031ca6399abace17dcb77c17a.tar.gz linux-stable-a14a68b76954e73031ca6399abace17dcb77c17a.tar.bz2 linux-stable-a14a68b76954e73031ca6399abace17dcb77c17a.zip |
bcache: allow allocator to invalidate bucket in gc
Currently, if the gc is running, when the allocator found free_inc
is empty, allocator has to wait the gc finish. Before that, the
IO is blocked.
But actually, there would be some buckets is reclaimable before gc,
and gc will never mark this kind of bucket to be unreclaimable.
So we can put these buckets into free_inc in gc running to avoid
IO being blocked.
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
Signed-off-by: Mingzhe Zou <mingzhe.zou@easystack.cn>
Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20240528120914.28705-2-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/kernel/print.rs')
0 files changed, 0 insertions, 0 deletions