On Thursday 26 July 2018 23:23:13 Taylor R Campbell wrote:
> static void
> foo_intr(...)
> {
> ...
> mutex_enter(&sc->sc_work_lock);
> if (!sc->sc_work_scheduled) {
> workqueue_enqueue(sc->sc_wq, &sc->sc_work, NULL);
> sc->sc_work_scheduled = true;
> }
> mutex_exit(&sc->sc_work_lock);
> ...
> }I was just wondering ... you show the intr enqueuing the work. Is it OK to have a callout enqueue work so one can enqueue work at some point in the future? --Phil
