summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid0.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-06-11 07:08:03 +0200
committerNeilBrown <neilb@suse.de>2013-06-14 00:10:27 +0200
commit725d6e579f06360744fc101b1af2f82d8aa282f1 (patch)
treec46f6b92ac05727d1201f6f63276dfeb6ddd4096 /drivers/md/raid0.c
parentmd/raid10: locking changes for 'enough()'. (diff)
downloadlinux-725d6e579f06360744fc101b1af2f82d8aa282f1.tar.xz
linux-725d6e579f06360744fc101b1af2f82d8aa282f1.zip
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 <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid0.c')
0 files changed, 0 insertions, 0 deletions