patch-2.4.26 linux-2.4.26/drivers/scsi/scsi_error.c
Next file: linux-2.4.26/drivers/scsi/scsi_lib.c
Previous file: linux-2.4.26/drivers/scsi/qlogicpti.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
2004-04-14 06:05:31.000000000 -0700
- Orig file:
linux-2.4.25/drivers/scsi/scsi_error.c
- Orig date:
2002-11-28 15:53:14.000000000 -0800
diff -urN linux-2.4.25/drivers/scsi/scsi_error.c linux-2.4.26/drivers/scsi/scsi_error.c
@@ -110,25 +110,13 @@
int timeout,
void (*complete) (Scsi_Cmnd *))
{
-
- /*
- * If the clock was already running for this command, then
- * first delete the timer. The timer handling code gets rather
- * confused if we don't do this.
- */
- if (SCset->eh_timeout.function != NULL) {
- del_timer(&SCset->eh_timeout);
- }
SCset->eh_timeout.data = (unsigned long) SCset;
- SCset->eh_timeout.expires = jiffies + timeout;
SCset->eh_timeout.function = (void (*)(unsigned long)) complete;
+ mod_timer(&SCset->eh_timeout, jiffies + timeout);
SCset->done_late = 0;
SCSI_LOG_ERROR_RECOVERY(5, printk("Adding timer for command %p at %d (%p)\n", SCset, timeout, complete));
-
- add_timer(&SCset->eh_timeout);
-
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)