From: Kent Overstreet Date: Mon, 5 Apr 2021 04:53:42 +0000 (-0400) Subject: bcachefs: Add a cond_seched() to the allocator thread X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1b05778707d04cb367a7ca8dbeff571b6117a191;p=linux.git 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 --- 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