bcachefs: Fix hang while shutting down
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 16 Apr 2019 19:13:16 +0000 (15:13 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:20 +0000 (17:08 -0400)
commitf80b4e64a4d79e78053a0e2ed4607f6af9dd2c89
tree31182b84f007a7c10b4705edb6fabe424d65975e
parent53beb841623bcdb1fe619efe5f2c34ca3af08c78
bcachefs: Fix hang while shutting down

If the allocator thread exited before bch2_dev_allocator_stop() was
called (because of an error), bch2_dev_allocator_quiesce() could hang.

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