patch-2.3.33 linux/drivers/scsi/scsi.c
Next file: linux/drivers/scsi/scsi.h
Previous file: linux/drivers/scsi/qlogicisp.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Tue Dec 14 08:49:00 1999
- Orig file:
v2.3.32/linux/drivers/scsi/scsi.c
- Orig date:
Tue Dec 14 01:27:24 1999
diff -u --recursive --new-file v2.3.32/linux/drivers/scsi/scsi.c linux/drivers/scsi/scsi.c
@@ -1139,12 +1139,18 @@
* to complete */
atomic_inc(&SCpnt->host->host_active);
+ SCpnt->buffer = NULL;
+ SCpnt->bufflen = 0;
+ SCpnt->request_buffer = NULL;
+ SCpnt->request_bufflen = 0;
+
SCpnt->use_sg = 0; /* Reset the scatter-gather flag */
SCpnt->old_use_sg = 0;
SCpnt->transfersize = 0; /* No default transfer size */
SCpnt->cmd_len = 0;
SCpnt->underflow = 0; /* Do not flag underflow conditions */
+ SCpnt->resid = 0;
SCpnt->state = SCSI_STATE_INITIALIZING;
SCpnt->owner = SCSI_OWNER_HIGHLEVEL;
@@ -1344,7 +1350,7 @@
* need be held upon entry. The old queueing code the lock was
* assumed to be held upon entry.
*
- * Returns: Pointer to command descriptor.
+ * Returns: Nothing.
*
* Notes: Prior to the new queue code, this function was not SMP-safe.
* Also, this function is now only used for queueing requests
@@ -1482,6 +1488,7 @@
* etc, etc.
*/
if (!tstatus) {
+ SCpnt->done_late = 1;
return;
}
/* Set the serial numbers back to zero */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)