Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jan 2010 20:57:38 GMT
From:      Alexander Motin <mav@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 173335 for review
Message-ID:  <201001182057.o0IKvcwq025853@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=173335

Change 173335 by mav@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++;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001182057.o0IKvcwq025853>