From 1b05778707d04cb367a7ca8dbeff571b6117a191 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 5 Apr 2021 00:53:42 -0400 Subject: [PATCH] bcachefs: Add a cond_seched() to the allocator thread This is just a band-aid fix for now. Signed-off-by: Kent Overstreet Signed-off-by: Kent Overstreet --- fs/bcachefs/alloc_background.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/bcachefs/alloc_background.c b/fs/bcachefs/alloc_background.c index b9b97cbda1779..f2117084f2fed 100644 --- a/fs/bcachefs/alloc_background.c +++ b/fs/bcachefs/alloc_background.c @@ -1127,6 +1127,7 @@ static int bch2_allocator_thread(void *arg) pr_debug("free_inc now empty"); do { + cond_resched(); /* * Find some buckets that we can invalidate, either * they're completely unused, or only contain clean data -- 2.30.2