]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
bcachefs: add cond_resched() to handle_overwrites()
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 3 Jun 2025 15:47:51 +0000 (11:47 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 4 Jun 2025 20:45:41 +0000 (16:45 -0400)
Fix soft lockup warnings in btree nodes can.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_node_scan.c

index 5a97a6b8a7575c5bb1f23d499990b99128aebbeb..a35847734a609d93b00bc6456d13f89299822b00 100644 (file)
@@ -363,6 +363,8 @@ static int handle_overwrites(struct bch_fs *c,
                                min_heap_sift_down(nodes_heap, 0, &found_btree_node_heap_cbs, NULL);
                        }
                }
+
+               cond_resched();
        }
 
        return 0;