]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
irq_work: Also rcuwait for !IRQ_WORK_HARD_IRQ on PREEMPT_RT
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 6 Oct 2021 11:18:52 +0000 (13:18 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 15 Oct 2021 09:25:18 +0000 (11:25 +0200)
commit09089db79859cbccccd8df95b034f36f7027efa6
tree52cf18ecadd4750e3a8f319d36ddc8c856f3c656
parentb4c6f86ec2f648b5e6d4b04564fbc6d5351160a8
irq_work: Also rcuwait for !IRQ_WORK_HARD_IRQ on PREEMPT_RT

On PREEMPT_RT most items are processed as LAZY via softirq context.
Avoid to spin-wait for them because irq_work_sync() could have higher
priority and not allow the irq-work to be completed.

Wait additionally for !IRQ_WORK_HARD_IRQ irq_work items on PREEMPT_RT.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20211006111852.1514359-5-bigeasy@linutronix.de
include/linux/irq_work.h
kernel/irq_work.c