]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
[SCSI] aacraid: correct use of cmd->timeout field
authorJames Bottomley <James.Bottomley@steeleye.com>
Fri, 5 Aug 2005 21:31:35 +0000 (16:31 -0500)
committerJames Bottomley <jejb@mulgrave.(none)>
Mon, 8 Aug 2005 14:14:37 +0000 (09:14 -0500)
The cmd->timeout field has been obsolete for a while now.  While looking
to remove it, I came across this use in the aacraid driver.  It looks
like you want to initialise the firmware with the current timeout of the
command (in seconds), so the value I think you should be using is
cmd->timeout_per_command.

Acked by: Mark Haverkamp <markh@osdl.org>
Acked by: Mark Salyzyn <mark_salyzyn@adaptec.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/aacraid/aachba.c

index d6c999cd7f78ca9e7af624deb7f40e823d0029a1..8e3493587299d2de8ae6e503be0b02d01f473522 100644 (file)
@@ -1898,7 +1898,7 @@ static int aac_send_srb_fib(struct scsi_cmnd* scsicmd)
        srbcmd->id   = cpu_to_le32(scsicmd->device->id);
        srbcmd->lun      = cpu_to_le32(scsicmd->device->lun);
        srbcmd->flags    = cpu_to_le32(flag);
-       timeout = (scsicmd->timeout-jiffies)/HZ;
+       timeout = scsicmd->timeout_per_command/HZ;
        if(timeout == 0){
                timeout = 1;
        }