From a9355dbe829dfef46160f6e1beec9185e1f08c85 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Fri, 18 Oct 2013 11:26:40 +0000 Subject: [PATCH] Revert r256587. Requested by: zec --- sys/kern/subr_taskqueue.c | 3 --- 1 file changed, 3 deletions(-) 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;