bcachefs; Check for allocator thread shutdown
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 1 Jun 2021 00:52:39 +0000 (20:52 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:05 +0000 (17:09 -0400)
commit01254036a326e0663eaeabb2eb3359c04caed2a0
tree7ab109a490a86e427be5539e89c3c2487a025c9f
parentd7fc453bdb012d5bc021e693896989fd5973823f
bcachefs; Check for allocator thread shutdown

We were missing a kthread_should_stop() check in the loop in
bch2_invalidate_buckets(), very occasionally leading to us getting stuck
while shutting down.

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