commit | b51912c91fcf7581cc7b4550f1bb96422809d9ed | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Wed Feb 04 09:23:24 2009 -0500 |
committer | Chris Mason <chris.mason@oracle.com> | Wed Feb 04 09:23:24 2009 -0500 |
tree | 3738e358e75088d300b289e013beccffe0af8e05 | |
parent | 0279b4cd86685b5eea467c1b74ce94f0add2c0a3 [diff] |
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>