Commit d754c5ae authored by NeilBrown's avatar NeilBrown

md/raid1: fix confusing 'redirect sector' message.

This message seems to suggest the named device is the one on which a
read failed, however it is actually the device that the read will be
redirected to.
So make the message a little clearer.
Reported-by: default avatarTim Burgess <ozburgess@gmail.com>
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 9e35b99c
...@@ -1689,10 +1689,10 @@ static void raid1d(mddev_t *mddev) ...@@ -1689,10 +1689,10 @@ static void raid1d(mddev_t *mddev)
r1_bio->bios[r1_bio->read_disk] = bio; r1_bio->bios[r1_bio->read_disk] = bio;
rdev = conf->mirrors[disk].rdev; rdev = conf->mirrors[disk].rdev;
if (printk_ratelimit()) if (printk_ratelimit())
printk(KERN_ERR "raid1: %s: redirecting sector %llu to" printk(KERN_ERR "raid1: redirecting sector %llu to"
" another mirror\n", " other mirror: %s\n",
bdevname(rdev->bdev,b), (unsigned long long)r1_bio->sector,
(unsigned long long)r1_bio->sector); bdevname(rdev->bdev,b));
bio->bi_sector = r1_bio->sector + rdev->data_offset; bio->bi_sector = r1_bio->sector + rdev->data_offset;
bio->bi_bdev = rdev->bdev; bio->bi_bdev = rdev->bdev;
bio->bi_end_io = raid1_end_read_request; bio->bi_end_io = raid1_end_read_request;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment