diff --git a/sys/kern/subr_taskqueue.c b/sys/kern/subr_taskqueue.c index 5d904df677e..e889de84652 100644 --- a/sys/kern/subr_taskqueue.c +++ b/sys/kern/subr_taskqueue.c @@ -42,7 +42,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include static MALLOC_DEFINE(M_TASKQUEUE, "taskqueue", "Task Queues"); static void *taskqueue_giant_ih; @@ -340,9 +339,7 @@ taskqueue_run_locked(struct taskqueue *queue) tb.tb_running = task; TQ_UNLOCK(queue); - CURVNET_SET(task->ta_vnet); task->ta_func(task->ta_context, pending); - CURVNET_RESTORE(); TQ_LOCK(queue); tb.tb_running = NULL;