md/raid5: add some missing locking in handle_failed_stripe.
authorNeilBrown <neilb@suse.de>
Thu, 11 Oct 2012 02:50:12 +0000 (13:50 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 11 Oct 2012 02:50:12 +0000 (13:50 +1100)
commit143c4d0573caebe0ae017097614349697e2280eb
treeb5a68ce2a375a8e2617d2f4099b1701b521ddcc8
parent9e44476851e91c86c98eb92b9bc27fb801f89072
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