bcachefs: fix for unmount hang
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
b935a8a67a
commit
736affa8bb
@ -1257,7 +1257,8 @@ 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)
|
||||
{
|
||||
closure_wait_event(&c->freelist_wait, ca->allocator_blocked_full);
|
||||
if (ca->alloc_thread)
|
||||
closure_wait_event(&c->freelist_wait, ca->allocator_blocked_full);
|
||||
}
|
||||
|
||||
/* stop allocator thread: */
|
||||
|
Loading…
Reference in New Issue
Block a user