diff options
Diffstat (limited to 'drivers/md/multipath.c')
-rw-r--r-- | drivers/md/multipath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/multipath.c b/drivers/md/multipath.c index a222f516660e..9339e67fcc79 100644 --- a/drivers/md/multipath.c +++ b/drivers/md/multipath.c | |||
@@ -428,7 +428,7 @@ static int multipath_run (struct mddev *mddev) | |||
428 | } | 428 | } |
429 | 429 | ||
430 | working_disks = 0; | 430 | working_disks = 0; |
431 | list_for_each_entry(rdev, &mddev->disks, same_set) { | 431 | rdev_for_each(rdev, mddev) { |
432 | disk_idx = rdev->raid_disk; | 432 | disk_idx = rdev->raid_disk; |
433 | if (disk_idx < 0 || | 433 | if (disk_idx < 0 || |
434 | disk_idx >= mddev->raid_disks) | 434 | disk_idx >= mddev->raid_disks) |