From: Chris Mason Date: Thu, 12 Jun 2008 00:21:24 +0000 (-0400) Subject: Btrfs: Worker thread optimizations X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~56^2~30^2~150 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35d8ba66294ff2a53c17337a1aa1ff6739492f41;p=pandora-kernel.git Btrfs: Worker thread optimizations This changes the worker thread pool to maintain a list of idle threads, avoiding a complex search for a good thread to wake up. Threads have two states: idle - we try to reuse the last thread used in hopes of improving the batching ratios busy - each time a new work item is added to a busy task, the task is rotated to the end of the line. Signed-off-by: Chris Mason --- Reading git-diff-tree failed