diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2020-03-21 14:26:03 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-03-21 18:00:24 +0300 |
commit | 49915ac35ca7b07c54295a72d905be5064afb89e (patch) | |
tree | da7e2b9c50d6ecdfa94db8b0d409fcb1527681eb /include/linux/irq_work.h | |
parent | 40db173965c05a1d803451240ed41707d5bd978d (diff) | |
download | linux-49915ac35ca7b07c54295a72d905be5064afb89e.tar.xz |
lockdep: Annotate irq_work
Mark irq_work items with IRQ_WORK_HARD_IRQ which should be invoked in
hardirq context even on PREEMPT_RT. IRQ_WORK without this flag will be
invoked in softirq context on PREEMPT_RT.
Set ->irq_config to 1 for the IRQ_WORK items which are invoked in softirq
context so lockdep knows that these can safely acquire a spinlock_t.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200321113242.643576700@linutronix.de
Diffstat (limited to 'include/linux/irq_work.h')
-rw-r--r-- | include/linux/irq_work.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/irq_work.h b/include/linux/irq_work.h index 02da997ad12c..3b752e80c017 100644 --- a/include/linux/irq_work.h +++ b/include/linux/irq_work.h @@ -18,6 +18,8 @@ /* Doesn't want IPI, wait for tick: */ #define IRQ_WORK_LAZY BIT(2) +/* Run hard IRQ context, even on RT */ +#define IRQ_WORK_HARD_IRQ BIT(3) #define IRQ_WORK_CLAIMED (IRQ_WORK_PENDING | IRQ_WORK_BUSY) |