bcachefs: Add a cond_seched() to the allocator thread

This is just a band-aid fix for now.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2021-04-05 00:53:42 -04:00 committed by Kent Overstreet
parent 19dd3172b0
commit 1b05778707

View File

@ -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