]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix unprotected system chunk array insertion
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 3 Sep 2014 13:35:39 +0000 (21:35 +0800)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:38:40 +0000 (13:38 -0700)
commit57f914217e8d02a2788af1ac76bbd28ee12b7f0f
treea8d47049a474f3954575fe322236f305868355a8
parent75c081e72472d0fe08557647af2f3f5455fc7f5d
Btrfs: fix unprotected system chunk array insertion

We didn't protect the system chunk array when we added a new
system chunk into it, it would cause the array be corrupted
if someone remove/add some system chunk into array at the same
time. Fix it by chunk lock.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/volumes.c