summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorZqiang <qiang.zhang@linux.dev>2026-01-23 10:52:25 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-30 10:28:48 +0100
commit541959b2fadb832a7d0ceb95041dc52bdcf6bff7 (patch)
tree417ebfc0602f9d41f3fdde28ad44fe4c96257970 /include/net/aligned_data.h
parentfc9ce762525e73438d31b613f18bca92a4d3d578 (diff)
sched_ext: Fix possible deadlock in the deferred_irq_workfn()
[ Upstream commit a257e974210320ede524f340ffe16bf4bf0dda1e ] For PREEMPT_RT=y kernels, the deferred_irq_workfn() is executed in the per-cpu irq_work/* task context and not disable-irq, if the rq returned by container_of() is current CPU's rq, the following scenarios may occur: lock(&rq->__lock); <Interrupt> lock(&rq->__lock); This commit use IRQ_WORK_INIT_HARD() to replace init_irq_work() to initialize rq->scx.deferred_irq_work, make the deferred_irq_workfn() is always invoked in hard-irq context. Signed-off-by: Zqiang <qiang.zhang@linux.dev> Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Chen Yu <xnguchen@sina.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions