Btrfs: fix the race between remove dev and alloc chunk
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Wed, 20 Apr 2011 10:08:16 +0000 (10:08 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 23 May 2011 17:24:43 +0000 (13:24 -0400)
commit0c1daee085cff1395d1eba4ad6faff7810a594d8
treea7c86b2b7aaed74e8a4daebc3f1d8da6875c1e1b
parentc9513edb0079f97749c2ac00c887a22c4ba44792
Btrfs: fix the race between remove dev and alloc chunk

On remove device path, it updates device->dev_alloc_list but does not hold
chunk lock

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c