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>
This commit is contained in:
Kent Overstreet 2019-04-16 15:13:16 -04:00 • committed by Kent Overstreet
commit f80b4e64a4
3 changed files with 21 additions and 11 deletions