Skip to content
Commit b51912c9 authored by Chris Mason's avatar Chris Mason
Browse files

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: default avatarChris Mason <chris.mason@oracle.com>
parent 0279b4cd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment