Drain the driver tasks on the same taskqueue in which they were enqueued.

This commit is contained in:
Andrew Thompson 2009-04-17 16:07:13 +00:00
parent dfa8d62567
commit 0c512ce8ee

View File

@ -417,9 +417,9 @@ ipw_detach(device_t dev)
ieee80211_ifdetach(ic);
callout_drain(&sc->sc_wdtimer);
taskqueue_drain(taskqueue_fast, &sc->sc_init_task);
taskqueue_drain(taskqueue_fast, &sc->sc_scan_task);
taskqueue_drain(taskqueue_fast, &sc->sc_bmiss_task);
taskqueue_drain(taskqueue_swi, &sc->sc_init_task);
taskqueue_drain(taskqueue_swi, &sc->sc_scan_task);
taskqueue_drain(taskqueue_swi, &sc->sc_bmiss_task);
ipw_release(sc);