summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2016-06-02 16:19:52 +1000
committerShaohua Li <shli@fb.com>2016-06-13 11:54:16 -0700
commitd683c8e0f728f4b4e85f21d5fa7e452f3d3f5fb1 (patch)
tree0bdc23ff8fc5d1e8681fb4c9563bfab811bd63e5 /drivers/md
parentd094d6860b6678057f70dee27121ea4860c55e06 (diff)
downloadop-kernel-dev-d683c8e0f728f4b4e85f21d5fa7e452f3d3f5fb1.zip
op-kernel-dev-d683c8e0f728f4b4e85f21d5fa7e452f3d3f5fb1.tar.gz
md/raid10: minor code improvement in fix_read_error()
rdev already holds conf->mirrors[d].rdev, so no need to load it again. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/raid10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index e644f6f..7a8bfe2 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -2262,7 +2262,7 @@ static void fix_read_error(struct r10conf *conf, struct mddev *mddev, struct r10
printk(KERN_NOTICE
"md/raid10:%s: %s: Failing raid device\n",
mdname(mddev), b);
- md_error(mddev, conf->mirrors[d].rdev);
+ md_error(mddev, rdev);
r10_bio->devs[r10_bio->read_slot].bio = IO_BLOCKED;
return;
}
OpenPOWER on IntegriCloud