patch-2.2.15 linux/drivers/s390/block/dasd_ccwstuff.c

Next file: linux/drivers/s390/block/dasd_eckd.c
Previous file: linux/drivers/s390/block/dasd.c
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/drivers/s390/block/dasd_ccwstuff.c linux/drivers/s390/block/dasd_ccwstuff.c
@@ -2,7 +2,7 @@
  * File...........: linux/drivers/s390/block/dasd_ccwstuff.c
  * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com>
  * Bugreports.to..: <Linux390@de.ibm.com>
- * (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999
+ * (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999,2000
  */
 
 #include <linux/stddef.h>
@@ -337,6 +337,7 @@
 		q->head = cqr;
 	cqr->next = NULL;
 	q->tail = cqr;
+	q->queued_requests ++;
 	if (atomic_compare_and_swap(CQR_STATUS_FILLED,
 				    CQR_STATUS_QUEUED,
 				    &cqr->status)) {
@@ -368,6 +369,7 @@
 			q->tail = prev;
 	}
 	cqr->next = NULL;
+	q->queued_requests --;
 	return release_cqr(cqr);
 }
 

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