]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix unprotected alloc list insertion during the finishing procedure of replace
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 30 Jan 2014 08:46:54 +0000 (16:46 +0800)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:15:38 +0000 (15:15 -0400)
commit916b449c2382172e877f3d8a63e7513afed1675c
tree34a873797c1cb54e999afd63c46f2927510b159a
parent3dd6f6f64d2e4ddd3b5815f1c2ac54dd888435d3
Btrfs: fix unprotected alloc list insertion during the finishing procedure of replace

the alloc list of the filesystem is protected by ->chunk_mutex, we need
get that mutex when we insert the new device into the list.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/dev-replace.c