]> git.baikalelectronics.ru Git - kernel.git/commit
lockdep: Annotate irq_work
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Sat, 21 Mar 2020 11:26:03 +0000 (12:26 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Sat, 21 Mar 2020 15:00:24 +0000 (16:00 +0100)
commitc6e0bff7bb0b4f23e6ccd6a7bd7ecd2c7d44f7a0
treeda7e2b9c50d6ecdfa94db8b0d409fcb1527681eb
parent14a8e7daedfc8274cca2593074f62c55b4c72ce3
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
include/linux/irq_work.h
include/linux/irqflags.h
kernel/irq_work.c
kernel/rcu/tree.c
kernel/time/tick-sched.c