summaryrefslogtreecommitdiff
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-12-15 04:56:59 +0300
committerNeilBrown <neilb@suse.de>2015-02-06 01:32:55 +0300
commitf97fcad38f2ecf2e34b6f0ab93f74f2978dbe008 (patch)
treebff93531bc4bf444adf29337202b4814359d8a61 /drivers/md/raid5.c
parent978a7a47cae79ae7a7b5a1e80bfcaef6ee700312 (diff)
downloadlinux-f97fcad38f2ecf2e34b6f0ab93f74f2978dbe008.tar.xz
md: remove need for mddev_lock() in md_seq_show()
The only access in md_seq_show that could suffer from races not protected by ->lock is walking the rdev list. This can receive sufficient protection from 'rcu'. So use rdev_for_each_rcu() and get rid of mddev_lock(). Now reading /proc/mdstat will never block in md_seq_show. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid5.c')
0 files changed, 0 insertions, 0 deletions