mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 14:17:43 +00:00
Btrfs: add a cond_resched() into the worker loop
If we have a constant stream of end_io completions or crc work, we can hit softlockup messages from the async helper threads. This adds a cond_resched() into the loop to avoid them. Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
306424cc88
commit
8f3b65a3d6
1 changed files with 1 additions and 1 deletions
|
@ -331,7 +331,7 @@ again:
|
||||||
run_ordered_completions(worker->workers, work);
|
run_ordered_completions(worker->workers, work);
|
||||||
|
|
||||||
check_pending_worker_creates(worker);
|
check_pending_worker_creates(worker);
|
||||||
|
cond_resched();
|
||||||
}
|
}
|
||||||
|
|
||||||
spin_lock_irq(&worker->lock);
|
spin_lock_irq(&worker->lock);
|
||||||
|
|
Loading…
Add table
Reference in a new issue