patch-2.3.38 linux/drivers/scsi/scsi_queue.c

Next file: linux/drivers/scsi/scsi_syms.c
Previous file: linux/drivers/scsi/scsi_obsolete.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.37/linux/drivers/scsi/scsi_queue.c linux/drivers/scsi/scsi_queue.c
@@ -133,6 +133,13 @@
 	cmd->bh_next = NULL;
 
 	/*
+	 * Decrement the counters, since these commands are no longer
+	 * active on the host/device.
+	 */
+	cmd->host->host_busy--;
+	cmd->device->device_busy--;
+
+	/*
 	 * Insert this command at the head of the queue for it's device.
 	 * It will go before all other commands that are already in the queue.
 	 */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)