From: Chris Mason Date: Tue, 15 Sep 2009 23:57:42 +0000 (-0400) Subject: Btrfs: fix async worker startup race X-Git-Tag: v2.6.32-rc1~57^2^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e99d8eb347c93a5d38081380b8c9e69b203212e;p=pandora-kernel.git Btrfs: fix async worker startup race After a new worker thread starts, it is placed into the list of idle threads. But, this may race with a check for idle done by the worker thread itself, resulting in a double list_add operation. This fix adds a check to make sure the idle thread addition is done properly. Signed-off-by: Chris Mason --- Reading git-diff-tree failed