Re: [PATCH] aacraid: correct use of cmd->timeout field

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

 



On Fri, 2005-08-05 at 16:31 -0500, James Bottomley wrote:
> 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.

It looks that way to me too.   Is scsicmd->timeout even set anywhere? I
didn't find any.

Mark.

> 
> James
> 
> diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c
> --- a/drivers/scsi/aacraid/aachba.c
> +++ b/drivers/scsi/aacraid/aachba.c
> @@ -1894,7 +1893,7 @@ static int aac_send_srb_fib(struct scsi_
>  	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;
>  	}
> 
-- 
Mark Haverkamp <markh@xxxxxxxx>

-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux