commit | cbe47ec559c33a68b5ee002051b848d1531a8adb | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.de> | Tue Jul 26 11:20:35 2011 +1000 |
committer | NeilBrown <neilb@suse.de> | Tue Jul 26 11:20:35 2011 +1000 |
tree | 922184b1b599ce0e97f01d7fc6a84fc4c8493a0c | |
parent | 83206d66b65118d995c38746f21edc2bb8564b49 [diff] |
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>