Skip to content

Commit

Permalink
[SCSI] ibmvscsi timeout fix
Browse files Browse the repository at this point in the history
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>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
Dave C Boutcher authored and James Bottomley committed Aug 28, 2005
1 parent de540a5 commit 8224bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/ibmvscsi/ibmvscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ static int ibmvscsi_queuecommand(struct scsi_cmnd *cmnd,
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;
Expand Down

0 comments on commit 8224bfa

Please sign in to comment.