]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid5: add some missing locking in handle_failed_stripe.
authorNeilBrown <neilb@suse.de>
Tue, 25 Sep 2012 07:00:44 +0000 (17:00 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 25 Sep 2012 07:00:44 +0000 (17:00 +1000)
commit270da570de744bf0323ae35efb22f4c46eb1026a
treec7ff9a924076d7e44cf82b3fc2580265b9d2223e
parent54f66b608d37dd2587a7d2b316e6ee721abe2cd3
md/raid5: add some missing locking in handle_failed_stripe.

We really should hold the stripe_lock while accessing
'toread' else we could race with add_stripe_bio and corrupt
a list.

Reported-by: "Jianpeng Ma" <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c