PERFORCE change 170504 for review

Alexander Motin mav at FreeBSD.org
Wed Nov 11 19:59:58 UTC 2009


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

Change 170504 by mav at mav_mavbook on 2009/11/11 19:59:13

	Unify code a bit.

Affected files ...

.. //depot/projects/scottl-camlock/src/sys/cam/cam_xpt.c#126 edit

Differences ...

==== //depot/projects/scottl-camlock/src/sys/cam/cam_xpt.c#126 (text+ko) ====

@@ -3273,16 +3273,13 @@
 
 	devq->send_queue.qfrozen_cnt++;
 	while ((devq->send_queue.entries > 0)
-	    && (devq->send_openings > 0)) {
+	    && (devq->send_openings > 0)
+	    && (devq->send_queue.qfrozen_cnt <= 1)) {
 		struct	cam_ed_qinfo *qinfo;
 		struct	cam_ed *device;
 		union ccb *work_ccb;
 		struct	cam_sim *sim;
 
-	    	if (devq->send_queue.qfrozen_cnt > 1) {
-			break;
-		}
-
 		qinfo = (struct cam_ed_qinfo *)camq_remove(&devq->send_queue,
 							   CAMQ_HEAD);
 		device = qinfo->device;


More information about the p4-projects mailing list