From 066b89e68545e1f774124969d0dd7b36ccb04112 Mon Sep 17 00:00:00 2001 From: Chunwei Chen <david.chen@osnexus.com> Date: Thu, 3 Dec 2015 15:06:03 -0800 Subject: 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 <david.chen@osnexus.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #506 --- include/sys/taskq.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include/sys') 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 */ -- cgit v1.2.3