mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08: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