Skip to content

Commit ef740a1

Browse files
author
Kent Overstreet
committed
bcachefs: Add missing bch2_moving_ctxt_flush_all()
This fixes a bug with rebalance IOs getting stuck with reads completed, but writes never being issued. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent fa3185a commit ef740a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/bcachefs/rebalance.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ static int do_rebalance(struct moving_context *ctxt)
371371
!kthread_should_stop() &&
372372
!atomic64_read(&r->work_stats.sectors_seen) &&
373373
!atomic64_read(&r->scan_stats.sectors_seen)) {
374+
bch2_moving_ctxt_flush_all(ctxt);
374375
bch2_trans_unlock_long(trans);
375376
rebalance_wait(c);
376377
}

0 commit comments

Comments
 (0)