Commit 3d11125f authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: add cond_resched() to handle_overwrites()



Fix soft lockup warnings in btree nodes can.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent a4b0f750
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;