md/raid5: add rcu protection to rdev accesses in want_replace
authorNeilBrown <neilb@suse.com>
Thu, 2 Jun 2016 06:19:52 +0000 (16:19 +1000)
committerShaohua Li <shli@fb.com>
Mon, 13 Jun 2016 18:54:19 +0000 (11:54 -0700)
commit3f232d6a95fc0fe539e0855ee7f3854b03c8104e
treed8b5c58c05ff9c69b2f79d29cfcbdf665f0bf734
parente50d3992328320acf2454c1e7301a094cd90aebc
md/raid5: add rcu protection to rdev accesses in want_replace

Being in the middle of resync is no longer protection against failed
rdevs disappearing.  So add rcu protection.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5.c