PERFORCE change 173335 for review

Alexander Motin mav at FreeBSD.org
Mon Jan 18 20:57:39 UTC 2010


http://p4web.freebsd.org/chv.cgi?CH=173335

Change 173335 by mav at mav_mavtest on 2010/01/18 20:57:25

	Do not touch dev_openings when it should not be touched.

Affected files ...

.. //depot/projects/scottl-camlock/src/sys/cam/cam_queue.h#8 edit

Differences ...

==== //depot/projects/scottl-camlock/src/sys/cam/cam_queue.h#8 (text+ko) ====

@@ -197,7 +197,6 @@
 	camq_insert(&ccbq->queue, &new_ccb->ccb_h.pinfo);
 	if (ccbq->queue.qfrozen_cnt[CAM_PRIORITY_TO_RL(
 	    new_ccb->ccb_h.pinfo.priority)] > 0) {
-		ccbq->dev_openings++;
 		ccbq->devq_openings++;
 		ccbq->held++;
 		return (1);
@@ -211,7 +210,6 @@
 	camq_remove(&ccbq->queue, ccb->ccb_h.pinfo.index);
 	if (ccbq->queue.qfrozen_cnt[CAM_PRIORITY_TO_RL(
 	    ccb->ccb_h.pinfo.priority)] > 0) {
-		ccbq->dev_openings--;
 		ccbq->devq_openings--;
 		ccbq->held--;
 		return (1);
@@ -273,7 +271,6 @@
 			continue;
 		if (rrl >= p)
 			break;
-		ccbq->dev_openings++;
 		ccbq->devq_openings++;
 		ccbq->held++;
 		frozen++;
@@ -304,7 +301,6 @@
 			continue;
 		if (rrl >= n)
 			break;
-		ccbq->dev_openings--;
 		ccbq->devq_openings--;
 		ccbq->held--;
 		released++;


More information about the p4-projects mailing list