aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorMoger, Babu <Babu.Moger@lsi.com>2010-03-05 21:29:45 -0500
committerAlasdair G Kergon <agk@redhat.com>2010-03-05 21:29:45 -0500
commit83c0d5d5388a8d45f7a45e0ec34adc52a78c81ad (patch)
tree85a59c18293f0c14a547fdd43631b59c21d1136d /drivers/md
parent64ba9926759792cf7b95f823402e2781edd1b5d4 (diff)
dm mpath: pass struct pgpath to pg init done
This patch removes some unnecessary argument casting. There is no functional change with this patch. Passes 'struct pgpath' through to pg_init_done() instead of the enclosed 'struct dm_path'. Tested the changes with LSI storage.. CC: Chandra Seetharaman <chandra.seetharaman@us.ibm.com> Signed-off-by: Babu Moger <babu.moger@lsi.com> Acked-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-mpath.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
index e81345a1d08f..2c6bf74ad5c1 100644
--- a/drivers/md/dm-mpath.c
+++ b/drivers/md/dm-mpath.c
@@ -1128,8 +1128,7 @@ static int pg_init_limit_reached(struct multipath *m, struct pgpath *pgpath)
1128 1128
1129static void pg_init_done(void *data, int errors) 1129static void pg_init_done(void *data, int errors)
1130{ 1130{
1131 struct dm_path *path = data; 1131 struct pgpath *pgpath = data;
1132 struct pgpath *pgpath = path_to_pgpath(path);
1133 struct priority_group *pg = pgpath->pg; 1132 struct priority_group *pg = pgpath->pg;
1134 struct multipath *m = pg->m; 1133 struct multipath *m = pg->m;
1135 unsigned long flags; 1134 unsigned long flags;
@@ -1198,7 +1197,7 @@ static void activate_path(struct work_struct *work)
1198 container_of(work, struct pgpath, activate_path); 1197 container_of(work, struct pgpath, activate_path);
1199 1198
1200 scsi_dh_activate(bdev_get_queue(pgpath->path.dev->bdev), 1199 scsi_dh_activate(bdev_get_queue(pgpath->path.dev->bdev),
1201 pg_init_done, &pgpath->path); 1200 pg_init_done, pgpath);
1202} 1201}
1203 1202
1204/* 1203/*