mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
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:
parent
19dd3172b0
commit
1b05778707
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user