From: Chris Mason Date: Tue, 4 Aug 2009 20:56:34 +0000 (-0400) Subject: Btrfs: Allow worker threads to exit when idle X-Git-Tag: v2.6.32-rc1~57^2^2~26^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9042846bc7ae69cc3288d85af6bad16208d93a95;p=pandora-kernel.git 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 --- Reading git-diff-tree failed