]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: using rcu lock in the reader side of devices list
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Wed, 20 Apr 2011 10:09:16 +0000 (10:09 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 23 May 2011 17:24:43 +0000 (13:24 -0400)
commit63af5e6042297e4415899ca6e20ca1ee9bec6856
tree98c5496a9ab3e77e4cd682c0487f4c0127198396
parent03d7f2ea167e1d29f0b5b0da74d78a40eff68850
Btrfs: using rcu lock in the reader side of devices list

fs_devices->devices is only updated on remove and add device paths, so we can
use rcu to protect it in the reader side

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c
fs/btrfs/ioctl.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h