mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 21:15:53 +02: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:
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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user