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