aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorXiao Guangrong <[email protected]>2011-04-20 10:07:30 +0000
committerChris Mason <[email protected]>2011-05-23 17:24:42 +0000
commitc9513edb0079f97749c2ac00c887a22c4ba44792 (patch)
tree6b34bd7cdf5dcd882e61bf4912ae10b4de3b87dd /fs/jbd2/commit.c
parentBtrfs: fix bh leak on __btrfs_open_devices path (diff)
downloadkernel-c9513edb0079f97749c2ac00c887a22c4ba44792.tar.gz
kernel-c9513edb0079f97749c2ac00c887a22c4ba44792.zip
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 <[email protected]> Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions