Commit 736affa8 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: fix for unmount hang

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent b935a8a6
...@@ -1257,6 +1257,7 @@ void bch2_dev_allocator_add(struct bch_fs *c, struct bch_dev *ca) ...@@ -1257,6 +1257,7 @@ void bch2_dev_allocator_add(struct bch_fs *c, struct bch_dev *ca)
void bch2_dev_allocator_quiesce(struct bch_fs *c, struct bch_dev *ca) void bch2_dev_allocator_quiesce(struct bch_fs *c, struct bch_dev *ca)
{ {
if (ca->alloc_thread)
closure_wait_event(&c->freelist_wait, ca->allocator_blocked_full); closure_wait_event(&c->freelist_wait, ca->allocator_blocked_full);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment