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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=191207

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);