]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: add a cond_resched() into the worker loop
authorChris Mason <chris.mason@oracle.com>
Thu, 15 Dec 2011 14:29:43 +0000 (09:29 -0500)
committerChris Mason <chris.mason@oracle.com>
Thu, 15 Dec 2011 15:50:38 +0000 (10:50 -0500)
commit576b7f11fa32fff4d55c218a6367ca0df8c42719
tree3111f24d0e0391f8a1dac3f0a7fb9bff05e2b4bd
parent7aa3541ab526012fa41e26def9280f728c3946c9
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>
fs/btrfs/async-thread.c