Skip to content

Commit d0fb2a2

Browse files
author
Kent Overstreet
committed
bcachefs: cond_resched() in journal_key_sort_cmp()
Fixes "task out to lunch" warnings during recovery on large machines with lots of dirty data in the journal. Signed-off-by: Kent Overstreet <[email protected]>
1 parent ef488bb commit d0fb2a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/bcachefs/btree_journal_iter.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,8 @@ void bch2_btree_and_journal_iter_init_node_iter(struct btree_trans *trans,
644644
*/
645645
static int journal_sort_key_cmp(const void *_l, const void *_r)
646646
{
647+
cond_resched();
648+
647649
const struct journal_key *l = _l;
648650
const struct journal_key *r = _r;
649651

0 commit comments

Comments
 (0)