mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
bcachefs: Add missing bch2_moving_ctxt_flush_all()
commit ef740a1e29
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>
This commit is contained in:
parent
6763051bea
commit
9a269387a0
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user