From 97c11ef2828c7c1024f22a294dbaed42db6f23dd Mon Sep 17 00:00:00 2001 From: Lawrence Stewart Date: Thu, 1 Apr 2010 01:27:10 +0000 Subject: [PATCH] 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(-) diff --git a/sys/kern/kern_alq.c b/sys/kern/kern_alq.c index 8a92dbece408..6722d9a4db13 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); }