From: Wang Shilong Date: Fri, 11 Oct 2013 18:11:12 +0000 (+0800) Subject: Btrfs: avoid unnecessary scrub workers allocation X-Git-Tag: v3.13-rc1~85^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b7a016f44d51ba8425c244f4c607f93fa213fd2;p=pandora-kernel.git Btrfs: avoid unnecessary scrub workers allocation We only allocate scrub workers if we pass all the necessary checks, for example, there are no operation in progress. Besides, move mutex lock protection outside of scrub_workers_get() /scrub_workers_put(). Signed-off-by: Wang Shilong Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed