Chris Mason 9042846bc7 Btrfs: Allow worker threads to exit when idle
The Btrfs worker threads don't currently die off after they have
been idle for a while, leading to a lot of threads sitting around
doing nothing for each mount.

Also, they are unable to start atomically (from end_io hanlders).

This commit reworks the worker threads so they can be started
from end_io handlers (just setting a flag that asks for a thread
to be added at a later date) and so they can exit if they
have been idle for a long time.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
2009-09-11 13:30:56 -04:00
..
2009-06-10 11:36:43 -04:00
2008-09-25 11:04:06 -04:00
2009-04-24 15:46:04 -04:00
2009-02-04 09:28:28 -05:00
2009-04-02 16:46:06 -04:00
2009-01-05 21:25:51 -05:00
2009-07-27 13:57:01 -04:00
2009-02-04 09:29:13 -05:00
2009-02-04 09:29:13 -05:00