PERFORCE change 173818 for review
Alexander Motin
mav at FreeBSD.org
Thu Jan 28 07:53:43 UTC 2010
http://p4web.freebsd.org/chv.cgi?CH=173818
Change 173818 by mav at mav_mavtest on 2010/01/28 07:53:08
Hide freeze problems diagnostic messages behind INVARIANTS.
Affected files ...
.. //depot/projects/scottl-camlock/src/sys/cam/cam_xpt.c#145 edit
Differences ...
==== //depot/projects/scottl-camlock/src/sys/cam/cam_xpt.c#145 (text+ko) ====
@@ -4186,8 +4186,10 @@
{
if (count > dev->ccbq.queue.qfrozen_cnt[rl]) {
+#ifdef INVARIANTS
printf("xpt_release_devq(%d): requested %u > present %u\n",
rl, count, dev->ccbq.queue.qfrozen_cnt[rl]);
+#endif
count = dev->ccbq.queue.qfrozen_cnt[rl];
}
dev->sim->devq->alloc_openings -=
@@ -4231,8 +4233,10 @@
mtx_assert(sim->mtx, MA_OWNED);
sendq = &(sim->devq->send_queue);
if (sendq->qfrozen_cnt[0] <= 0) {
+#ifdef INVARIANTS
printf("xpt_release_simq: requested 1 > present %u\n",
sendq->qfrozen_cnt[0]);
+#endif
} else
sendq->qfrozen_cnt[0]--;
if (sendq->qfrozen_cnt[0] == 0) {
More information about the p4-projects
mailing list