diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2013-08-21 17:48:46 +0200 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-09-08 18:59:01 -0400 |
commit | 426e7e3fef72771f1e4ea8bf339d2487d0a6d537 (patch) | |
tree | a55d70511d9944dcebc4663bac068a1dbd422aab /include/linux | |
parent | 1bfa54fae614f81dd77cdb55d3178517a49a8053 (diff) |
genirq: do not invoke the affinity callback via a workqueue
Joe Korty reported, that __irq_set_affinity_locked() schedules a
workqueue while holding a rawlock which results in a might_sleep()
warning.
This patch moves the invokation into a process context so that we only
wakeup() a process while holding the lock.
Cc: stable-rt@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/interrupt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index 773dbc9e1c5f..fb0576196171 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h @@ -269,6 +269,7 @@ struct irq_affinity_notify { unsigned int irq; struct kref kref; struct work_struct work; + struct list_head list; void (*notify)(struct irq_affinity_notify *, const cpumask_t *mask); void (*release)(struct kref *ref); }; |