mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 17:03:47 -04:00
bcachefs: fix for unmount hang
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
committed by
Kent Overstreet
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: */
|
||||
|
||||
Reference in New Issue
Block a user