From c1a8ef630e85e8e930169cf59719655410162990 Mon Sep 17 00:00:00 2001 From: lstewart Date: Thu, 1 Apr 2010 01:27:10 +0000 Subject: 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 --- sys/kern/kern_alq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern') diff --git a/sys/kern/kern_alq.c b/sys/kern/kern_alq.c index 8a92dbe..6722d9a 100644 --- a/sys/kern/kern_alq.c +++ b/sys/kern/kern_alq.c @@ -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); } -- cgit v1.1