svn commit: r193148 - user/kmacy/releng_7_2_fcs/sys/dev/cxgb

Kip Macy kmacy at FreeBSD.org
Sun May 31 05:37:16 UTC 2009


Author: kmacy
Date: Sun May 31 05:37:15 2009
New Revision: 193148
URL: http://svn.freebsd.org/changeset/base/193148

Log:
  drop lock before calling drain

Modified:
  user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_main.c

Modified: user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_main.c
==============================================================================
--- user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_main.c	Sun May 31 05:20:54 2009	(r193147)
+++ user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_main.c	Sun May 31 05:37:15 2009	(r193148)
@@ -1782,19 +1782,19 @@ cxgb_down_locked(struct adapter *sc)
 	
 	callout_stop(&sc->cxgb_tick_ch);
 	callout_stop(&sc->sge_timer_ch);
+	ADAPTER_UNLOCK(sc);
+
 	callout_drain(&sc->cxgb_tick_ch);
 	callout_drain(&sc->sge_timer_ch);
 	
 	if (sc->tq != NULL) {
 		printf("draining slow intr\n");
-		
 		taskqueue_drain(sc->tq, &sc->slow_intr_task);
 			printf("draining ext intr\n");	
 		taskqueue_drain(sc->tq, &sc->ext_intr_task);
 		printf("draining tick task\n");
 		taskqueue_drain(sc->tq, &sc->tick_task);
 	}
-	ADAPTER_UNLOCK(sc);
 }
 
 static int


More information about the svn-src-user mailing list