mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-30 20:30:32 -04: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:
committed by
Kent Overstreet
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))) {
|
||||
|
||||
Reference in New Issue
Block a user