mirror of
https://github.com/torvalds/linux.git
synced 2024-09-20 15:03:04 +00:00
bcachefs: copygc should wakeup on shutdown if disabled
Signed-off-by: Daniel Hill <daniel@gluo.nz> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
0c069781dd
commit
3ec3758a81
|
@ -337,7 +337,8 @@ static int bch2_copygc_thread(void *arg)
|
|||
|
||||
if (!c->copy_gc_enabled) {
|
||||
move_buckets_wait(&ctxt, buckets, true);
|
||||
kthread_wait_freezable(c->copy_gc_enabled);
|
||||
kthread_wait_freezable(c->copy_gc_enabled ||
|
||||
kthread_should_stop());
|
||||
}
|
||||
|
||||
if (unlikely(freezing(current))) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user