md/raid5: add rcu protection to rdev accesses in handle_failed_sync.
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)
commite50d3992328320acf2454c1e7301a094cd90aebc
tree29b78f339a939f07ea4d10d7e8c953ca48bca360
parent707a6a420ccf31634f2b15d8f06f09536e2de079
md/raid5: add rcu protection to rdev accesses in handle_failed_sync.

The rdev could be freed while handle_failed_sync is running, so
rcu protection is needed.

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