diff options
author | Brian Behlendorf <[email protected]> | 2010-06-11 14:53:23 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2010-06-11 15:57:25 -0700 |
commit | eb12b3782c94113d2d40d2da22265dc4111a672b (patch) | |
tree | de7edb48e1a7db6def3452a3e93d7ec6fbcd4f9c /include/sys/taskq.h | |
parent | 32c6147dee702e6033a9f3b4999a0b9025a88260 (diff) |
Support TQ_FRONT flag used by taskq_dispatch()
Allow taskq_dispatch() to insert work items at the head of the
queue instead of just the tail by passing the TQ_FRONT flag.
Diffstat (limited to 'include/sys/taskq.h')
-rw-r--r-- | include/sys/taskq.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sys/taskq.h b/include/sys/taskq.h index baa96eaa0..4e51d98dd 100644 --- a/include/sys/taskq.h +++ b/include/sys/taskq.h @@ -39,6 +39,7 @@ #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 *); @@ -53,6 +54,7 @@ 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 { |