From: NeilBrown Date: Tue, 26 Jul 2011 01:20:35 +0000 (+1000) Subject: md/raid5: Protect some more code with ->device_lock. X-Git-Tag: v3.1-rc1~131^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbe47ec559c33a68b5ee002051b848d1531a8adb;p=pandora-kernel.git 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 Signed-off-by: NeilBrown Reviewed-by: Namhyung Kim --- Reading git-diff-tree failed