Skip to content

Commit 3d11125

Browse files
author
Kent Overstreet
committed
bcachefs: add cond_resched() to handle_overwrites()
Fix soft lockup warnings in btree nodes can. Signed-off-by: Kent Overstreet <[email protected]>
1 parent a4b0f75 commit 3d11125

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/bcachefs/btree_node_scan.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,8 @@ static int handle_overwrites(struct bch_fs *c,
363363
min_heap_sift_down(nodes_heap, 0, &found_btree_node_heap_cbs, NULL);
364364
}
365365
}
366+
367+
cond_resched();
366368
}
367369

368370
return 0;

0 commit comments

Comments
 (0)