[dm-devel] [PATCH 7/8] scsi_dh: attach to hardware handler from dm-mpath

Alasdair G Kergon agk at redhat.com
Fri Jul 18 00:08:54 UTC 2008


On Thu, Jul 17, 2008 at 04:53:27PM -0700, Chandra Seetharaman wrote:
> +++ linux-2.6.26-git5/drivers/md/dm-mpath.c
> @@ -147,9 +147,12 @@ static struct priority_group *alloc_prio
>  static void free_pgpaths(struct list_head *pgpaths, struct dm_target *ti)
>  {
>  	struct pgpath *pgpath, *tmp;
> +	struct multipath *m = (struct multipath *) ti->private;
  
> @@ -546,6 +549,7 @@ static struct pgpath *parse_path(struct 
>  {
>  	int r;
>  	struct pgpath *p;
> +	struct multipath *m = (struct multipath *) ti->private;
  
FYI We're not writing explicit casts in cases like that in new dm code.

Alasdair
-- 
agk at redhat.com




More information about the dm-devel mailing list