projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
306424c
)
Btrfs: add a cond_resched() into the worker loop
author
Chris Mason
<chris.mason@oracle.com>
Thu, 15 Dec 2011 14:29:43 +0000
(09:29 -0500)
committer
Chris Mason
<chris.mason@oracle.com>
Thu, 15 Dec 2011 15:50:38 +0000
(10:50 -0500)
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>
fs/btrfs/async-thread.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/async-thread.c
b/fs/btrfs/async-thread.c
index 7ec14097fef1f3bbb9b7611a96111c55d0ba9e19..203e849dc9c95c572793f6170aba2285e8f338c6 100644
(file)
--- a/
fs/btrfs/async-thread.c
+++ b/
fs/btrfs/async-thread.c
@@
-331,7
+331,7
@@
again:
run_ordered_completions(worker->workers, work);
check_pending_worker_creates(worker);
-
+ cond_resched();
}
spin_lock_irq(&worker->lock);