aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/root-tree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2009-09-15 19:57:42 -0400
committerChris Mason <chris.mason@oracle.com>2009-09-15 20:20:16 -0400
commit3e99d8eb347c93a5d38081380b8c9e69b203212e (patch)
tree1fde8df76b399c12827c2e2bd989e29e83d9994f /fs/btrfs/root-tree.c
parentMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable (diff)
downloadlinux-dev-3e99d8eb347c93a5d38081380b8c9e69b203212e.tar.xz
linux-dev-3e99d8eb347c93a5d38081380b8c9e69b203212e.zip
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 <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/root-tree.c')
0 files changed, 0 insertions, 0 deletions