md/raid1:Remove unnecessary rcu_dereference(conf->mirrors[i].rdev).
authormajianpeng <majianpeng@gmail.com>
Sun, 1 Apr 2012 15:04:19 +0000 (01:04 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 3 Apr 2012 05:37:33 +0000 (15:37 +1000)
commita42f9d83b5c05dc6e678a1f0cd9767502c2c58de
treee1864a59287f1441a4b016938efea5ca30a57df1
parent24b961f811a3e790a9b93604d2594bfb6cce4fa4
md/raid1:Remove unnecessary rcu_dereference(conf->mirrors[i].rdev).

Because rde->nr_pending > 0,so can not remove this disk.
And in any case, we aren't holding rcu_read_lock()

Signed-off-by: majianpeng <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid1.c