Skip to content

md/raid5-ppl: Fix invalid context sleep in ppl_io_unit_finished() on PREEMPT_RT#228

Open
kpd-daemon[bot] wants to merge 1 commit into
md-6.16_basefrom
series/992260=>md-6.16
Open

md/raid5-ppl: Fix invalid context sleep in ppl_io_unit_finished() on PREEMPT_RT#228
kpd-daemon[bot] wants to merge 1 commit into
md-6.16_basefrom
series/992260=>md-6.16

Conversation

@kpd-daemon
Copy link
Copy Markdown

@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 <ysk@kzalloc.com>
@kpd-daemon
Copy link
Copy Markdown
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