]> git.karo-electronics.de Git - linux-beck.git/commit
md/raid1: add rcu protection to rdev in fix_read_error
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:18 +0000 (11:54 -0700)
commit707a6a420ccf31634f2b15d8f06f09536e2de079
treebd4661927839a5e2e65a8e8de6ef3572841d6ea1
parent854abd75841413f7966bc4fed83b36e78a1c285c
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>
drivers/md/raid1.c