summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md')
-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 a0c02fb8af2a..77fab07abcee 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,