Commit 6ae0d16d authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet
Browse files

bcachefs: Make sure to kick journal reclaim when we're waiting on it

parent b1bd955b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -639,6 +639,8 @@ static int journal_reclaim_wait_done(struct bch_fs *c)
	if (ret)
		return ret;

	journal_reclaim_kick(&c->journal);

	if (mutex_trylock(&c->journal.reclaim_lock)) {
		ret = bch2_journal_reclaim(&c->journal);
		mutex_unlock(&c->journal.reclaim_lock);