linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] ibmvscsi timeout fix
@ 2005-08-22 19:38 Dave C Boutcher
  2005-08-22 19:53 ` Joel Schopp
  0 siblings, 1 reply; 2+ messages in thread
From: Dave C Boutcher @ 2005-08-22 19:38 UTC (permalink / raw)
  To: linux-scsi; +Cc: jschopp, linuxppc64-dev

This patch fixes a long term borkenness in
ibmvscsi where we were using the wrong timeout
field from the scsi command (and using the 
wrong units.)  Now broken by the fact that the
scsi_cmnd timeout field is gone entirely.
This only worked before because all the SCSI
targets assumed that 0 was default.

Signed-off-by: Dave Boutcher <boutcher@us.ibm.com>

--- linux-2.6.13-rc6-mm1-orig/drivers/scsi/ibmvscsi/ibmvscsi.c	2005-08-22 13:54:20.111955197 -0500
+++ linux-2.6.13-rc6-mm1/drivers/scsi/ibmvscsi/ibmvscsi.c	2005-08-22 14:22:56.265042174 -0500
@@ -594,7 +594,7 @@
 	init_event_struct(evt_struct,
 			  handle_cmd_rsp,
 			  VIOSRP_SRP_FORMAT,
-			  cmnd->timeout);
+			  cmnd->timeout_per_command/HZ);
 
 	evt_struct->cmnd = cmnd;
 	evt_struct->cmnd_done = done;


-- 
Dave Boutcher

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch] ibmvscsi timeout fix
  2005-08-22 19:38 [patch] ibmvscsi timeout fix Dave C Boutcher
@ 2005-08-22 19:53 ` Joel Schopp
  0 siblings, 0 replies; 2+ messages in thread
From: Joel Schopp @ 2005-08-22 19:53 UTC (permalink / raw)
  To: boutcher, Andrew Morton; +Cc: linux-scsi, linuxppc64-dev, linux-kernel

> This patch fixes a long term borkenness in
> ibmvscsi where we were using the wrong timeout
> field from the scsi command (and using the 
> wrong units.)  Now broken by the fact that the
> scsi_cmnd timeout field is gone entirely.
> This only worked before because all the SCSI
> targets assumed that 0 was default.

That was fast.  I report the error to you and get a patch next time I 
look at my mail.  This does fix the build break I saw in a 
2.6.13-rc6-mm1 defconfig on ppc64.

Adding Andrew Morton to the distribution list since somebody else is 
bound to notice that ppc64 -mm doesn't compile anymore.

Acked-by: Joel Schopp <jschopp@austin.ibm.com>

> 
> Signed-off-by: Dave Boutcher <boutcher@us.ibm.com>
> 
> --- linux-2.6.13-rc6-mm1-orig/drivers/scsi/ibmvscsi/ibmvscsi.c	2005-08-22 13:54:20.111955197 -0500
> +++ linux-2.6.13-rc6-mm1/drivers/scsi/ibmvscsi/ibmvscsi.c	2005-08-22 14:22:56.265042174 -0500
> @@ -594,7 +594,7 @@
>  	init_event_struct(evt_struct,
>  			  handle_cmd_rsp,
>  			  VIOSRP_SRP_FORMAT,
> -			  cmnd->timeout);
> +			  cmnd->timeout_per_command/HZ);
>  
>  	evt_struct->cmnd = cmnd;
>  	evt_struct->cmnd_done = done;
> 
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-08-22 19:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-22 19:38 [patch] ibmvscsi timeout fix Dave C Boutcher
2005-08-22 19:53 ` Joel Schopp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).