diff --git a/[refs] b/[refs] index 625ec2a9c2f9..d3b6ac55e142 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 486a153f0e294f7cc735838edcb6b32e623cbe52 +refs/heads/master: 3ec67ac1a399d576d48b0736096bcce7721fe3cf diff --git a/trunk/drivers/md/raid10.c b/trunk/drivers/md/raid10.c index 62ebb1bc72be..7239079203ec 100644 --- a/trunk/drivers/md/raid10.c +++ b/trunk/drivers/md/raid10.c @@ -538,7 +538,8 @@ static int read_balance(conf_t *conf, r10bio_t *r10_bio) } - current_distance = abs(this_sector - conf->mirrors[disk].head_position); + current_distance = abs(r10_bio->devs[slot].addr - + conf->mirrors[disk].head_position); /* Find the disk whose head is closest */