Re: [Patch] ibmvscsi compatibility fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Works like a charm on my machine with 2.6.13-mm2.

thanks,
-serge

Quoting Dave C Boutcher ([email protected]):
> Linda Xie ever so gently pointed out that she had a patch
> to preserve compatibility with older SLES targets, and I told
> her we didn't need to push it to mainline.
> 
> This patch explicitly checks the version of the IBMVSCSI target
> and ensures that large scatterlists are not sent to older 
> targets.
> 
> Andrew, while this stuff usually goes through James, it would
> probably make Serge happier if you could pick it up for the next
> mm.  
> 
> Signed-off-by: Linda Xie <[email protected]>
> Signed-off-by: Dave Boutcher <[email protected]>
> 
> --- linux-2.6.13-mm3-orig/drivers/scsi/ibmvscsi/ibmvscsi.c	2005-09-13 09:50:31.000000000 -0500
> +++ linux-2.6.13.1/drivers/scsi/ibmvscsi/ibmvscsi.c	2005-09-13 09:09:41.000000000 -0500
> @@ -727,6 +727,16 @@
>  		if (hostdata->madapter_info.port_max_txu[0]) 
>  			hostdata->host->max_sectors = 
>  				hostdata->madapter_info.port_max_txu[0] >> 9;
> +		
> +		if (hostdata->madapter_info.os_type == 3 &&
> +		    strcmp(hostdata->madapter_info.srp_version, "1.6a") <= 0) {
> +			printk("ibmvscsi: host (Ver. %s) doesn't support large"
> +			       "transfers\n",
> +			       hostdata->madapter_info.srp_version);
> +			printk("ibmvscsi: limiting scatterlists to %d\n",
> +			       MAX_INDIRECT_BUFS);
> +			hostdata->host->sg_tablesize = MAX_INDIRECT_BUFS;
> +		}
>  	}
>  }
>  
> 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux