summaryrefslogtreecommitdiff
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
authorGuoqing Jiang <gqjiang@suse.com>2017-06-13 06:16:08 +0300
committerShaohua Li <shli@fb.com>2017-06-16 22:04:08 +0300
commit1cdd1257949c85c5ddff8313fe3b1e39c5bee8b8 (patch)
tree2f3cc155916d857a49a6a3e6b3c08913061ea279 /drivers/md/raid1.c
parentf9c79bc05a2a91f4fba8bfd653579e066714b1ec (diff)
downloadlinux-1cdd1257949c85c5ddff8313fe3b1e39c5bee8b8.tar.xz
md/raid10: fix FailFast test for wrong device
We need to test FailFast flag for replacement device here since the set up for writing is for the replacement, so we need fix it like: - if (test_bit(FailFast, &conf->mirrors[d].rdev->flags)) + if (test_bit(FailFast, &conf->mirrors[d].replacement->flags)) Since commit f90145f317ef ("md/raid10: add rcu protection to rdev access in raid10_sync_request.") had added the rcu protection for the part, so let's extend the range protected by rcu and use rdev directly. Fixes: 1919cbb ("md/raid10: add failfast handling for writes.") Reviewed-by: NeilBrown <neilb@suse.com> Signed-off-by: Guoqing Jiang <gqjiang@suse.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/raid1.c')
0 files changed, 0 insertions, 0 deletions