Date: Wed, 17 Mar 2010 06:41:10 +0000 (UTC) From: Lawrence Stewart <lstewart@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r205242 - user/lstewart/alq_varlen_head/sys/kern Message-ID: <201003170641.o2H6fAjD023726@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: lstewart Date: Wed Mar 17 06:41:10 2010 New Revision: 205242 URL: http://svn.freebsd.org/changeset/base/205242 Log: Remove debugging printfs. Sponsored by: FreeBSD Foundation Modified: user/lstewart/alq_varlen_head/sys/kern/kern_alq.c Modified: user/lstewart/alq_varlen_head/sys/kern/kern_alq.c ============================================================================== --- user/lstewart/alq_varlen_head/sys/kern/kern_alq.c Wed Mar 17 06:20:40 2010 (r205241) +++ user/lstewart/alq_varlen_head/sys/kern/kern_alq.c Wed Mar 17 06:41:10 2010 (r205242) @@ -337,9 +337,6 @@ alq_doio(struct alq *alq) totlen = aiov[0].iov_len + aiov[1].iov_len; } - /*printf("Flushing %d bytes to disk, aq_freebytes==%d\n", totlen, - alq->aq_freebytes);*/ - alq->aq_flags |= AQ_FLUSHING; ALQ_UNLOCK(alq); @@ -372,9 +369,6 @@ alq_doio(struct alq *alq) alq->aq_buflen; alq->aq_freebytes += totlen + wrapearly; - /*printf("Flushed %d bytes to disk, aq_freebytes==%d, AQ_WANTED==%d\n", - totlen, alq->aq_freebytes, alq->aq_flags & AQ_WANTED);*/ - /* * If we just flushed part of the buffer which wrapped, reset the * wrapearly indicator. @@ -520,13 +514,9 @@ alq_writen(struct alq *alq, void *data, * resources to become available, spin until we're woken. */ if (alq->aq_flags & AQ_ORDERED && alq->aq_waiters > 0) { - /*printf("tid %d order sleep, wants %d bytes (%d avail)\n", - curthread->td_tid, len, alq->aq_freebytes);*/ alq->aq_waiters++; msleep_spin(&alq->aq_waiters, &alq->aq_mtx, "alqwriten", 0); alq->aq_waiters--; - /*printf("tid %d order woken, wants %d bytes (%d avail)\n", - curthread->td_tid, len, alq->aq_freebytes);*/ } /* @@ -534,19 +524,12 @@ alq_writen(struct alq *alq, void *data, * we have enough free bytes (former) or skip (latter). */ while (alq->aq_freebytes < len && !(alq->aq_flags & AQ_SHUTDOWN)) { - /*printf("tid %d sleep, wants %d bytes (%d avail)\n", - curthread->td_tid, len, alq->aq_freebytes);*/ alq->aq_flags |= AQ_WANTED; alq->aq_waiters++; msleep_spin(alq, &alq->aq_mtx, "alqwriten", 0); alq->aq_waiters--; - /*printf("tid %d woken, wants %d bytes (%d avail)\n", - curthread->td_tid, len, alq->aq_freebytes);*/ } - /*printf("tid %d got %d bytes (%d avail, %d waiters)\n", - curthread->td_tid, len, alq->aq_freebytes, alq->aq_waiters);*/ - /* * If there are waiters, wakeup the next thread in the queue waiting for * ALQ resources. @@ -690,13 +673,9 @@ alq_getn(struct alq *alq, int len, int f * resources to become available, spin until we're woken. */ if (alq->aq_flags & AQ_ORDERED && alq->aq_waiters > 0) { - /*printf("tid %d order sleep, wants %d bytes (%d avail)\n", - curthread->td_tid, len, alq->aq_freebytes);*/ alq->aq_waiters++; msleep_spin(&alq->aq_waiters, &alq->aq_mtx, "alqgetn", 0); alq->aq_waiters--; - /*printf("tid %d order woken, wants %d bytes (%d avail)\n", - curthread->td_tid, len, alq->aq_freebytes);*/ } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003170641.o2H6fAjD023726>