]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bcachefs: Don't wait for ALLOC_SCAN_BATCH buckets in allocator
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 8 Apr 2021 01:04:04 +0000 (21:04 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:59 +0000 (17:08 -0400)
commitb1bd955ba5693f18a091a5cfe3a21ab3bee74edf
tree6e498750ef46d6a8aaabed5623f84fa49e49ddf0
parent3a14d58e7b330f3526509917bb6a38b55a1feef5
bcachefs: Don't wait for ALLOC_SCAN_BATCH buckets in allocator

It used to be necessary for the allocator thread to batch up
invalidating buckets when possible - but since we added the btree key
cache that hasn't been a concern, and now it's causing the allocator
thread to livelock when the filesystem is nearly full.

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