svn commit: r206028 - head/sys/kern

Lawrence Stewart lstewart at FreeBSD.org
Thu Apr 1 01:27:11 UTC 2010


Author: lstewart
Date: Thu Apr  1 01:27:10 2010
New Revision: 206028
URL: http://svn.freebsd.org/changeset/base/206028

Log:
  The ALQ should not be considered drained until it has been made inactive.
  
  Sponsored by:	FreeBSD Foundation
  Reviewed by:	dwmalone, jeff, rpaulo, rwatson (as part of a larger patch)
  Approved by:	kmacy (mentor)
  MFC after:	1 month

Modified:
  head/sys/kern/kern_alq.c

Modified: head/sys/kern/kern_alq.c
==============================================================================
--- head/sys/kern/kern_alq.c	Thu Apr  1 01:23:36 2010	(r206027)
+++ head/sys/kern/kern_alq.c	Thu Apr  1 01:27:10 2010	(r206028)
@@ -253,7 +253,7 @@ alq_shutdown(struct alq *alq)
 	alq->aq_flags |= AQ_SHUTDOWN;
 
 	/* Drain IO */
-	while (alq->aq_flags & (AQ_FLUSHING|AQ_ACTIVE)) {
+	while (alq->aq_flags & AQ_ACTIVE) {
 		alq->aq_flags |= AQ_WANTED;
 		msleep_spin(alq, &alq->aq_mtx, "aldclose", 0);
 	}


More information about the svn-src-head mailing list