diff options
author | Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> | 2011-04-20 14:07:30 +0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-05-23 21:24:42 +0400 |
commit | c9513edb0079f97749c2ac00c887a22c4ba44792 (patch) | |
tree | 6b34bd7cdf5dcd882e61bf4912ae10b4de3b87dd /ipc | |
parent | 4f6c9328c6c0d8558907f16579a9d47815abef80 (diff) | |
download | linux-c9513edb0079f97749c2ac00c887a22c4ba44792.tar.xz |
Btrfs: fix the race between reading and updating devices
On btrfs_congested_fn and __unplug_io_fn paths, we should hold
device_list_mutex to avoid remove/add device path to
update fs_devices->devices
On __btrfs_close_devices and btrfs_prepare_sprout paths, the devices in
fs_devices->devices or fs_devices->devices is updated, so we should hold
the mutex to avoid the reader side to reach them
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions