From owner-svn-src-all@FreeBSD.ORG Tue Sep 25 05:57:00 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0FE7D106566B; Tue, 25 Sep 2012 05:57:00 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id EF3AF8FC08; Tue, 25 Sep 2012 05:56:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q8P5uxA3072833; Tue, 25 Sep 2012 05:56:59 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q8P5uxae072831; Tue, 25 Sep 2012 05:56:59 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201209250556.q8P5uxae072831@svn.freebsd.org> From: Adrian Chadd Date: Tue, 25 Sep 2012 05:56:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r240914 - head/sys/dev/ath X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Sep 2012 05:57:00 -0000 Author: adrian Date: Tue Sep 25 05:56:59 2012 New Revision: 240914 URL: http://svn.freebsd.org/changeset/base/240914 Log: Call ath_tx_tid_unsched() after the node has been flushed, so the state can be printed correctly. Modified: head/sys/dev/ath/if_ath_tx.c Modified: head/sys/dev/ath/if_ath_tx.c ============================================================================== --- head/sys/dev/ath/if_ath_tx.c Tue Sep 25 03:59:10 2012 (r240913) +++ head/sys/dev/ath/if_ath_tx.c Tue Sep 25 05:56:59 2012 (r240914) @@ -3468,12 +3468,11 @@ ath_tx_node_flush(struct ath_softc *sc, struct ath_tid *atid = &an->an_tid[tid]; struct ath_txq *txq = sc->sc_ac2q[atid->ac]; - /* Remove this tid from the list of active tids */ ATH_TXQ_LOCK(txq); - ath_tx_tid_unsched(sc, atid); - /* Free packets */ ath_tx_tid_drain(sc, an, atid, &bf_cq); + /* Remove this tid from the list of active tids */ + ath_tx_tid_unsched(sc, atid); ATH_TXQ_UNLOCK(txq); }