projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19dd317
)
bcachefs: Add a cond_seched() to the allocator thread
author
Kent Overstreet
<kent.overstreet@gmail.com>
Mon, 5 Apr 2021 04:53:42 +0000
(
00:53
-0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:54 +0000
(17:08 -0400)
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>
fs/bcachefs/alloc_background.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/alloc_background.c
b/fs/bcachefs/alloc_background.c
index b9b97cbda17792b3eca6f257bb79470ee2659e69..f2117084f2fed91d8954f1f67ec6f9272d9be23f 100644
(file)
--- 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