svn commit: r230564 - head/sys/dev/ath

Adrian Chadd adrian at FreeBSD.org
Thu Jan 26 07:03:31 UTC 2012


Author: adrian
Date: Thu Jan 26 07:03:30 2012
New Revision: 230564
URL: http://svn.freebsd.org/changeset/base/230564

Log:
  Add some node debugging which has helped me track down which particular
  concurrent vap->iv_bss free issues have been occuring.

Modified:
  head/sys/dev/ath/if_ath.c

Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c	Thu Jan 26 06:57:47 2012	(r230563)
+++ head/sys/dev/ath/if_ath.c	Thu Jan 26 07:03:30 2012	(r230564)
@@ -2695,6 +2695,8 @@ ath_beacon_alloc(struct ath_softc *sc, s
 	int error;
 
 	bf = avp->av_bcbuf;
+	DPRINTF(sc, ATH_DEBUG_NODE, "%s: bf_m=%p, bf_node=%p\n",
+	    __func__, bf->bf_m, bf->bf_node);
 	if (bf->bf_m != NULL) {
 		bus_dmamap_unload(sc->sc_dmat, bf->bf_dmamap);
 		m_freem(bf->bf_m);
@@ -3152,6 +3154,8 @@ static void
 ath_beacon_return(struct ath_softc *sc, struct ath_buf *bf)
 {
 
+	DPRINTF(sc, ATH_DEBUG_NODE, "%s: free bf=%p, bf_m=%p, bf_node=%p\n",
+	    __func__, bf, bf->bf_m, bf->bf_node);
 	if (bf->bf_m != NULL) {
 		bus_dmamap_unload(sc->sc_dmat, bf->bf_dmamap);
 		m_freem(bf->bf_m);
@@ -3173,6 +3177,9 @@ ath_beacon_free(struct ath_softc *sc)
 	struct ath_buf *bf;
 
 	TAILQ_FOREACH(bf, &sc->sc_bbuf, bf_list) {
+		DPRINTF(sc, ATH_DEBUG_NODE,
+		    "%s: free bf=%p, bf_m=%p, bf_node=%p\n",
+		        __func__, bf, bf->bf_m, bf->bf_node);
 		if (bf->bf_m != NULL) {
 			bus_dmamap_unload(sc->sc_dmat, bf->bf_dmamap);
 			m_freem(bf->bf_m);


More information about the svn-src-head mailing list