<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From: Moger, Babu &lt;Babu.Moger@lsi.com&gt;

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 &lt;chandra.seetharaman@us.ibm.com&gt;
Signed-off-by: Babu Moger &lt;babu.moger@lsi.com&gt;
Acked-by: Kiyoshi Ueda &lt;k-ueda@ct.jp.nec.com&gt;
Signed-off-by: Alasdair G Kergon &lt;agk@redhat.com&gt;

---
 drivers/md/dm-mpath.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Index: linux-2.6.33/drivers/md/dm-mpath.c
===================================================================
--- linux-2.6.33.orig/drivers/md/dm-mpath.c
+++ linux-2.6.33/drivers/md/dm-mpath.c
@@ -1128,8 +1128,7 @@ static int pg_init_limit_reached(struct 
 
 static void pg_init_done(void *data, int errors)
 {
-	struct dm_path *path = data;
-	struct pgpath *pgpath = path_to_pgpath(path);
+	struct pgpath *pgpath = data;
 	struct priority_group *pg = pgpath-&gt;pg;
 	struct multipath *m = pg-&gt;m;
 	unsigned long flags;
@@ -1198,7 +1197,7 @@ static void activate_path(struct work_st
 		container_of(work, struct pgpath, activate_path);
 
 	scsi_dh_activate(bdev_get_queue(pgpath-&gt;path.dev-&gt;bdev),
-				pg_init_done, &amp;pgpath-&gt;path);
+				pg_init_done, pgpath);
 }
 
 /*
</pre></body></html>