Skip to content

Commit d320461

Browse files
author
Kent Overstreet
committed
bcachefs: Fix failure to flush moves before sleeping in copygc
This fixes an apparent deadlock - rebalance would get stuck trying to take nocow locks because they weren't being released by copygc. Signed-off-by: Kent Overstreet <[email protected]>
1 parent a592cdf commit d320461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/movinggc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ static int bch2_copygc_thread(void *arg)
383383
if (min_member_capacity == U64_MAX)
384384
min_member_capacity = 128 * 2048;
385385

386-
bch2_trans_unlock_long(ctxt.trans);
386+
move_buckets_wait(&ctxt, buckets, true);
387387
bch2_kthread_io_clock_wait(clock, last + (min_member_capacity >> 6),
388388
MAX_SCHEDULE_TIMEOUT);
389389
}

0 commit comments

Comments
 (0)