mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 15:51:40 -04:00
bcachefs: Make sure to kick journal reclaim when we're waiting on it
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
committed by
Kent Overstreet
parent
b1bd955ba5
commit
6ae0d16d29
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user