summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-04-07 12:14:43 +1000
committerNeilBrown <neilb@suse.de>2010-05-18 15:27:56 +1000
commitd754c5ae1ff76b20d3ecde8ad666d7865eada8ae (patch)
tree60523d76c5e437ea39ce158295d75ea4247f70e1 /drivers/md
parent9e35b99c7efacfddc748c89a0c53b1122b0ee72c (diff)
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: Tim Burgess <ozburgess@gmail.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/raid1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index 5ff75c4d3af6..2e08e48b02d9 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -1689,10 +1689,10 @@ static void raid1d(mddev_t *mddev)
r1_bio->bios[r1_bio->read_disk] = bio;
rdev = conf->mirrors[disk].rdev;
if (printk_ratelimit())
- printk(KERN_ERR "raid1: %s: redirecting sector %llu to"
- " another mirror\n",
- bdevname(rdev->bdev,b),
- (unsigned long long)r1_bio->sector);
+ printk(KERN_ERR "raid1: redirecting sector %llu to"
+ " other mirror: %s\n",
+ (unsigned long long)r1_bio->sector,
+ bdevname(rdev->bdev,b));
bio->bi_sector = r1_bio->sector + rdev->data_offset;
bio->bi_bdev = rdev->bdev;
bio->bi_end_io = raid1_end_read_request;