summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-04-08 16:15:03 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:59 -0400
commit6ae0d16d29707ac952cdb8c2ccb0628f074e0e69 (patch)
treece720d901a5d8fa67d934ea97da078e4cec743fe
parentb1bd955ba5693f18a091a5cfe3a21ab3bee74edf (diff)
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>
-rw-r--r--fs/bcachefs/btree_update_leaf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/btree_update_leaf.c b/fs/bcachefs/btree_update_leaf.c
index 13c687fede0b..c5dab99b0cfc 100644
--- a/fs/bcachefs/btree_update_leaf.c
+++ b/fs/bcachefs/btree_update_leaf.c
@@ -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);