Skip to content

Conversation

kpd-daemon[bot]
Copy link

@kpd-daemon kpd-daemon bot commented Aug 17, 2025

Pull request for series with
subject: md/raid5-ppl: Fix invalid context sleep in ppl_io_unit_finished() on PREEMPT_RT
version: 1
url: https://patchwork.kernel.org/project/linux-raid/list/?series=992260

…PREEMPT_RT

The function ppl_io_unit_finished() uses a local_irq_save()/spin_lock()
sequence. On a PREEMPT_RT enabled kernel, spin_lock() can sleep. Calling it
with interrupts disabled creates an atomic context where sleeping is
forbidden.

Ensuring that the interrupt state is managed atomically with the lock
itself. The change is applied to both the 'log->io_list_lock' and
'ppl_conf->no_mem_stripes_lock' critical sections within the function.

Signed-off-by: Yunseong Kim <[email protected]>
@kpd-daemon
Copy link
Author

kpd-daemon bot commented Aug 17, 2025

Upstream branch: c17fb54
series: https://patchwork.kernel.org/project/linux-raid/list/?series=992260
version: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants