From 438683c0a9c9a045106f27aca85dc1855d926497 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Mon, 21 Jun 2010 10:19:44 -0700 Subject: [PATCH] Revert "Support TQ_FRONT flag used by taskq_dispatch()" This reverts commit eb12b3782c94113d2d40d2da22265dc4111a672b. --- include/sys/taskq.h | 2 -- module/spl/spl-taskq.c | 8 +------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/include/sys/taskq.h b/include/sys/taskq.h index 4e51d98dd..baa96eaa0 100644 --- a/include/sys/taskq.h +++ b/include/sys/taskq.h @@ -39,7 +39,6 @@ #define TASKQ_CPR_SAFE 0x00000002 #define TASKQ_DYNAMIC 0x00000004 #define TASKQ_THREADS_CPU_PCT 0x00000008 -#define TASKQ_DC_BATCH 0x00000010 typedef unsigned long taskqid_t; typedef void (task_func_t)(void *); @@ -54,7 +53,6 @@ typedef void (task_func_t)(void *); #define TQ_NOQUEUE 0x01000000 #define TQ_NOALLOC 0x02000000 #define TQ_NEW 0x04000000 -#define TQ_FRONT 0x08000000 #define TQ_ACTIVE 0x80000000 typedef struct taskq { diff --git a/module/spl/spl-taskq.c b/module/spl/spl-taskq.c index fba38021f..805749a14 100644 --- a/module/spl/spl-taskq.c +++ b/module/spl/spl-taskq.c @@ -274,13 +274,7 @@ __taskq_dispatch(taskq_t *tq, task_func_t func, void *arg, uint_t flags) GOTO(out, rc = 0); spin_lock(&t->t_lock); - - /* Queue to the head instead of the tail */ - if (flags & TQ_FRONT) - list_add(&t->t_list, &tq->tq_pend_list); - else - list_add_tail(&t->t_list, &tq->tq_pend_list); - + list_add_tail(&t->t_list, &tq->tq_pend_list); t->t_id = rc = tq->tq_next_id; tq->tq_next_id++; t->t_func = func;