]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid5: add some missing locking in handle_failed_stripe.
authorNeilBrown <neilb@suse.de>
Thu, 27 Sep 2012 02:37:29 +0000 (12:37 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 27 Sep 2012 02:37:29 +0000 (12:37 +1000)
commit9491965c14d41aa3b262be0cc9f6734a4d811386
treebca2bc1a6fc7be75175c682b572b3aad1617bcd1
parent126e4655ff4ab34a0eda3f88cdebbb94a3cc52f5
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