mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 10:02:33 -04:00
bcachefs: Add a cond_resched() to rebalance loop
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
committed by
Kent Overstreet
parent
952070908f
commit
6876d2ab78
@@ -183,6 +183,8 @@ static int bch2_rebalance_thread(void *arg)
|
||||
prev_cputime = curr_cputime();
|
||||
|
||||
while (!kthread_wait_freezable(r->enabled)) {
|
||||
cond_resched();
|
||||
|
||||
start = jiffies;
|
||||
cputime = curr_cputime();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user