From df5ac303dd4edbc1fd031fa5af43993bddae4e94 Mon Sep 17 00:00:00 2001 Date: Sat, 6 Mar 2010 02:29:45 +0000 Subject: [RHEL5.7 PATCH 4/8] dm mpath: pass struct pgpath to pg init done BZ 673058 Upstream commit 83c0d5d5388a8d45f7a45e0ec34adc52a78c81ad Author: Moger, Babu Date: Sat Mar 6 02:29:45 2010 +0000 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 Signed-off-by: Babu Moger Acked-by: Kiyoshi Ueda Signed-off-by: Alasdair G Kergon --- drivers/md/dm-mpath.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 3072c6d..c49bc0e 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c @@ -1184,8 +1184,7 @@ void dm_pg_init_complete(struct path *path, unsigned err_flags) static void pg_init_done(void *data, int errors) { - struct path *path = data; - struct pgpath *pgpath = path_to_pgpath(path); + struct pgpath *pgpath = data; struct priority_group *pg = pgpath->pg; struct multipath *m = pg->m; unsigned long flags; @@ -1259,7 +1258,7 @@ static void activate_path(void *data) struct pgpath *pgpath = (struct pgpath *) data; scsi_dh_activate(bdev_get_queue(pgpath->path.dev->bdev), - pg_init_done, &pgpath->path); + pg_init_done, pgpath); } /* -- 1.7.3.4