]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: async threads should try harder to find work
authorChris Mason <chris.mason@oracle.com>
Wed, 4 Feb 2009 14:23:24 +0000 (09:23 -0500)
committerChris Mason <chris.mason@oracle.com>
Wed, 4 Feb 2009 14:23:24 +0000 (09:23 -0500)
commit954101f6d3fc812da287346c7e1017a70c707cf8
tree3738e358e75088d300b289e013beccffe0af8e05
parent36d30396cb99f1548ec769dec42fbaddcc9113ab
Btrfs: async threads should try harder to find work

Tracing shows the delay between when an async thread goes to sleep
and when more work is added is often very short.  This commit adds
a little bit of delay and extra checking to the code right before
we schedule out.

It allows more work to be added to the worker
without requiring notifications from other procs.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/async-thread.c
fs/btrfs/disk-io.c