aboutsummaryrefslogtreecommitdiff
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-10-07 14:22:55 +1100
committerNeilBrown <neilb@suse.de>2011-10-07 14:22:55 +1100
commit0fc280f606742e8a2969776b2ab11cf6a614d9e1 (patch)
tree5725762cf7bc5eddcf0007584dfa7ba6eb67d3d8 /drivers/md/raid1.c
parentba3ae3bee317f0a5db813c026c8a8c113a4e40fb (diff)
md/raid1/ avoid bio search in end_sync_read()
We know which device we just read from so we don't need to search the bios to find out. Just use ->read_disk. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r--drivers/md/raid1.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index a0c02fb8af2..77fab07abce 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -1358,8 +1358,7 @@ static void end_sync_read(struct bio *bio, int error)
{
r1bio_t *r1_bio = bio->bi_private;
- /* this will call update_head_pos() */
- find_bio_disk(r1_bio, bio);
+ update_head_pos(r1_bio->read_disk, r1_bio);
/*
* we have read a block, now it needs to be re-written,