Date: Sun, 31 May 2009 05:37:16 +0000 (UTC) From: Kip Macy <kmacy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r193148 - user/kmacy/releng_7_2_fcs/sys/dev/cxgb Message-ID: <200905310537.n4V5bGxS030577@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905310537.n4V5bGxS030577>