aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.h
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2014-09-03 21:35:42 +0800
committerChris Mason <clm@fb.com>2014-09-17 13:38:43 -0700
commitadbbb8631beda8e4e5d2c964b8b47e04cfa0a2ae (patch)
tree4ee13e368464d455415919b0d52ca75defa4ff3e /fs/btrfs/volumes.h
parentBtrfs: Fix misuse of chunk mutex (diff)
downloadlinux-dev-adbbb8631beda8e4e5d2c964b8b47e04cfa0a2ae.tar.xz
linux-dev-adbbb8631beda8e4e5d2c964b8b47e04cfa0a2ae.zip
Btrfs: fix unprotected device list access when cloning fs devices
We can build a new filesystem based a seed filesystem, and we need clone the fs devices when we open the new filesystem. But someone might clear the seed flag of the seed filesystem, then mount that filesystem and remove some device. If we mount the new filesystem, we might access a device list which was being changed when we clone the fs devices. Fix it. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
0 files changed, 0 insertions, 0 deletions