commit | 707a6a420ccf31634f2b15d8f06f09536e2de079 | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.com> | Thu Jun 02 16:19:52 2016 +1000 |
committer | Shaohua Li <shli@fb.com> | Mon Jun 13 11:54:18 2016 -0700 |
tree | bd4661927839a5e2e65a8e8de6ef3572841d6ea1 | |
parent | 854abd75841413f7966bc4fed83b36e78a1c285c [diff] |
md/raid1: add rcu protection to rdev in fix_read_error Since remove_and_add_spares() was added to hot_remove_disk() it has been possible for an rdev to be hot-removed while fix_read_error() was running, so we need to be more careful, and take a reference to the rdev while performing IO. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Shaohua Li <shli@fb.com>