Skip to content

Commit

Permalink
dm raid: use rdev_for_each in status
Browse files Browse the repository at this point in the history
Signed-off-by: Heinz Mauelshagen <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
  • Loading branch information
mauelsha authored and snitm committed Jul 18, 2016
1 parent ffeeac7 commit 3268240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/md/dm-raid.c
Original file line number Diff line number Diff line change
Expand Up @@ -3186,8 +3186,8 @@ static void raid_status(struct dm_target *ti, status_type_t type,
sync_action = decipher_sync_action(&rs->md);

/* HM FIXME: do we want another state char for raid0? It shows 'D' or 'A' now */
for (i = 0; i < rs->raid_disks; i++)
DMEMIT(__raid_dev_status(&rs->dev[i].rdev, array_in_sync));
rdev_for_each(rdev, mddev)
DMEMIT(__raid_dev_status(rdev, array_in_sync));

/*
* In-sync/Reshape ratio:
Expand Down

0 comments on commit 3268240

Please sign in to comment.