mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 21:45:45 +02: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:
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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user