diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-02-08 14:43:53 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:15 -0400 |
commit | 736affa8bb3eeff49014dff9fd728f7ba3ffa550 (patch) | |
tree | a031f334a7c04675a83058997dada82176d70701 /fs | |
parent | b935a8a67ab744d20002aefd7f8053381b38532f (diff) |
bcachefs: fix for unmount hang
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/bcachefs/alloc_background.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/alloc_background.c b/fs/bcachefs/alloc_background.c index 83b3445cc76f..c44e0417af87 100644 --- a/fs/bcachefs/alloc_background.c +++ b/fs/bcachefs/alloc_background.c @@ -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: */ |