summaryrefslogtreecommitdiffstats
path: root/include/sys
diff options
context:
space:
mode:
authorChunwei Chen <[email protected]>2015-12-03 15:06:03 -0800
committerBrian Behlendorf <[email protected]>2015-12-11 16:20:03 -0800
commit066b89e68545e1f774124969d0dd7b36ccb04112 (patch)
treefd1129168534c78bbc8f2fd85f980cdb2ac016a9 /include/sys
parent326172d8549e0a34a8e4ef4665d8bdfcf7aeda6e (diff)
Don't use tq->tq_lock_flags
The flags argument in spin_lock_irqsave is modified out side of spin_lock context. We cannot use a shared variable like tq->tq_lock_flags for them. This patch removes it and uses local variable for the flags. Signed-off-by: Chunwei Chen <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #506
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/taskq.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/sys/taskq.h b/include/sys/taskq.h
index 5830fe2dd..07b4209e6 100644
--- a/include/sys/taskq.h
+++ b/include/sys/taskq.h
@@ -68,7 +68,6 @@ typedef void (task_func_t)(void *);
typedef struct taskq {
spinlock_t tq_lock; /* protects taskq_t */
- unsigned long tq_lock_flags; /* interrupt state */
char *tq_name; /* taskq name */
struct list_head tq_thread_list;/* list of all threads */
struct list_head tq_active_list;/* list of active threads */