diff options
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 7a8bfe2196c9..526c1d82246e 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -1598,7 +1598,7 @@ static void raid10_error(struct mddev *mddev, struct md_rdev *rdev) | |||
1598 | static void print_conf(struct r10conf *conf) | 1598 | static void print_conf(struct r10conf *conf) |
1599 | { | 1599 | { |
1600 | int i; | 1600 | int i; |
1601 | struct raid10_info *tmp; | 1601 | struct md_rdev *rdev; |
1602 | 1602 | ||
1603 | printk(KERN_DEBUG "RAID10 conf printout:\n"); | 1603 | printk(KERN_DEBUG "RAID10 conf printout:\n"); |
1604 | if (!conf) { | 1604 | if (!conf) { |
@@ -1608,14 +1608,16 @@ static void print_conf(struct r10conf *conf) | |||
1608 | printk(KERN_DEBUG " --- wd:%d rd:%d\n", conf->geo.raid_disks - conf->mddev->degraded, | 1608 | printk(KERN_DEBUG " --- wd:%d rd:%d\n", conf->geo.raid_disks - conf->mddev->degraded, |
1609 | conf->geo.raid_disks); | 1609 | conf->geo.raid_disks); |
1610 | 1610 | ||
1611 | /* This is only called with ->reconfix_mutex held, so | ||
1612 | * rcu protection of rdev is not needed */ | ||
1611 | for (i = 0; i < conf->geo.raid_disks; i++) { | 1613 | for (i = 0; i < conf->geo.raid_disks; i++) { |
1612 | char b[BDEVNAME_SIZE]; | 1614 | char b[BDEVNAME_SIZE]; |
1613 | tmp = conf->mirrors + i; | 1615 | rdev = conf->mirrors[i].rdev; |
1614 | if (tmp->rdev) | 1616 | if (rdev) |
1615 | printk(KERN_DEBUG " disk %d, wo:%d, o:%d, dev:%s\n", | 1617 | printk(KERN_DEBUG " disk %d, wo:%d, o:%d, dev:%s\n", |
1616 | i, !test_bit(In_sync, &tmp->rdev->flags), | 1618 | i, !test_bit(In_sync, &rdev->flags), |
1617 | !test_bit(Faulty, &tmp->rdev->flags), | 1619 | !test_bit(Faulty, &rdev->flags), |
1618 | bdevname(tmp->rdev->bdev,b)); | 1620 | bdevname(rdev->bdev,b)); |
1619 | } | 1621 | } |
1620 | } | 1622 | } |
1621 | 1623 | ||