From: NeilBrown Date: Tue, 11 Jun 2013 05:08:03 +0000 (+1000) Subject: md/raid10: check In_sync flag in 'enough()'. X-Git-Tag: v3.11-rc1~91^2~6 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=725d6e579f06360744fc101b1af2f82d8aa282f1;p=pandora-kernel.git md/raid10: check In_sync flag in 'enough()'. It isn't really enough to check that the rdev is present, we need to also be sure that the device is still In_sync. Doing this requires using rcu_dereference to access the rdev, and holding the rcu_read_lock() to ensure the rdev doesn't disappear while we look at it. Signed-off-by: NeilBrown --- Reading git-diff-tree failed