]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: Protect some more code with ->device_lock.
authorNeilBrown <neilb@suse.de>
Tue, 26 Jul 2011 01:20:35 +0000 (11:20 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 26 Jul 2011 01:20:35 +0000 (11:20 +1000)
commit280adec1dfb8d17017b84b7af54a0a487d8777f8
tree922184b1b599ce0e97f01d7fc6a84fc4c8493a0c
parentfe7a13b1369e5deed1243d653248b5bc1a4c49a4
md/raid5: Protect some more code with ->device_lock.

Other places that change or follow dev->towrite and dev->written take
the device_lock as well as the sh->lock.
So it should really be held in these places too.
Also, doing so will allow sh->lock to be discarded.

with merged fixes by: Namhyung Kim <namhyung@gmail.com>

Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Namhyung Kim <namhyung@gmail.com>
drivers/md/raid5.c