aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-mpow.c
diff options
context:
space:
mode:
authorZqiang <[email protected]>2025-11-13 11:43:55 +0000
committerTejun Heo <[email protected]>2025-11-13 18:29:28 +0000
commita257e974210320ede524f340ffe16bf4bf0dda1e (patch)
tree7640b272b0f475b249ea57eb9f0cac7ac6809dc1 /lib/mpi/mpi-mpow.c
parentsched/ext: convert scx_tasks_lock to raw spinlock (diff)
downloadkernel-a257e974210320ede524f340ffe16bf4bf0dda1e.tar.gz
kernel-a257e974210320ede524f340ffe16bf4bf0dda1e.zip
sched_ext: Fix possible deadlock in the deferred_irq_workfn()
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 <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mpow.c')
0 files changed, 0 insertions, 0 deletions