diff options
| author | Kent Overstreet <[email protected]> | 2024-08-10 18:40:09 +0000 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2024-08-14 03:00:34 +0000 |
| commit | 7254555c440ff6b136aa97fb3c33fd5e0bb4fb9f (patch) | |
| tree | cbd1d05109b68ad910a4f5133c780be31ae7b71e /fs/bcachefs/btree_trans_commit.c | |
| parent | lib/generic-radix-tree.c: Fix rare race in __genradix_ptr_alloc() (diff) | |
| download | kernel-7254555c440ff6b136aa97fb3c33fd5e0bb4fb9f.tar.gz kernel-7254555c440ff6b136aa97fb3c33fd5e0bb4fb9f.zip | |
bcachefs: Add hysteresis to waiting on btree key cache flush
This helps ensure key cache reclaim isn't contending with threads
waiting for the key cache to be helped, and fixes a severe performance
bug.
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'fs/bcachefs/btree_trans_commit.c')
| -rw-r--r-- | fs/bcachefs/btree_trans_commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_trans_commit.c b/fs/bcachefs/btree_trans_commit.c index cca336fe46e9..f567bfb82850 100644 --- a/fs/bcachefs/btree_trans_commit.c +++ b/fs/bcachefs/btree_trans_commit.c @@ -927,7 +927,7 @@ static inline int do_bch2_trans_commit(struct btree_trans *trans, unsigned flags static int journal_reclaim_wait_done(struct bch_fs *c) { int ret = bch2_journal_error(&c->journal) ?: - !bch2_btree_key_cache_must_wait(c); + bch2_btree_key_cache_wait_done(c); if (!ret) journal_reclaim_kick(&c->journal); |
