Skip to content

Commit

Permalink
bcachefs: Add missing bch2_moving_ctxt_flush_all()
Browse files Browse the repository at this point in the history
commit ef740a1 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Kent Overstreet authored and gregkh committed Feb 16, 2024
1 parent 6763051 commit 9a26938
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/bcachefs/rebalance.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ static int do_rebalance(struct moving_context *ctxt)
!kthread_should_stop() &&
!atomic64_read(&r->work_stats.sectors_seen) &&
!atomic64_read(&r->scan_stats.sectors_seen)) {
bch2_moving_ctxt_flush_all(ctxt);
bch2_trans_unlock_long(trans);
rebalance_wait(c);
}
Expand Down

0 comments on commit 9a26938

Please sign in to comment.