From: Florian Bezdeka <florian.bezdeka@siemens.com>
To: Ran Hongyun <ranhongyun1@huawei.com>, namcao@linutronix.de
Cc: axboe@kernel.dk, bigeasy@linutronix.de, brauner@kernel.org,
clrkwllms@kernel.org, frederic@kernel.org, jack@suse.cz,
jdamato@fastly.com, john.ogness@linutronix.de,
kprateek.nayak@amd.com, linux-fsdevel@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-rt-devel@lists.linux.dev,
linux-rt-users@vger.kernel.org, mkarsten@uwaterloo.ca,
rostedt@goodmis.org, stable@vger.kernel.org,
torvalds@linux-foundation.org, viro@zeniv.linux.org.uk,
vschneid@redhat.com, xry111@xry111.site,
chengzhihao1@huawei.com, yangerkun@huawei.com,
yi.zhang@huawei.com, wozizhi@huawei.com
Subject: Re: [QUESTION] Are these issues PREEMPT_RT-specific?
Date: Fri, 04 Sep 2026 10:52:11 +0200 [thread overview]
Message-ID: <63d5cd58e9b85acccdaaac9aed4a8c550cc7b868.camel@siemens.com> (raw)
In-Reply-To: <20260904081149.3000727-1-ranhongyun1@huawei.com>
On Fri, 2026-09-04 at 16:11 +0800, Ran Hongyun wrote:
> The commit eb0d280c2751 ("eventpoll: Replace rwlock with spinlock") aims to fix:
>
> 1.Priority inversion – On PREEMPT_RT, rwlock_t readers lack priority
> inheritance (PI), so a low-priority reader holding the lock can be
> preempted by a medium-priority task, blocking a high-priority writer
> indefinitely.
>
> 2.Stall – A reader (p_read) holding the lock can be throttled by CFS
> bandwidth control and scheduled out. A writer (p_write) blocks waiting
> for the lock, and a timer thread (ktimers/n) needed to replenish p_read's
> runtime is blocked due to writer-fairness (286deb7ec03d). This forms a
> circular dependency and stalls the system.
>
> Are these issues PREEMPT_RT-specific?
No, but it's way more critical on PREEMPT_RT. !RT systems will see a
"performance" or "throughput" drop but not a critical system stall.
>
> Any clarification would be appreciated.
2. was addressed in 6.18 by deferring the throttling to the place where
a task exits to user mode. See [1] for further reference.
[1] was not backported to older (stable) kernels but the commit you
referenced at the top was, so the 2. problem is gone there was well.
HTH,
Florian
[1] https://lore.kernel.org/all/20250829081120.806-1-ziqianlu@bytedance.com/
next prev parent reply other threads:[~2026-09-04 8:52 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-15 12:46 [PATCH v4 0/1] eventpoll: Fix priority inversion problem Nam Cao
2025-07-15 12:46 ` [PATCH v4 1/1] eventpoll: Replace rwlock with spinlock Nam Cao
2025-07-15 12:58 ` Nam Cao
2025-07-15 16:42 ` Linus Torvalds
2025-07-16 7:41 ` Nam Cao
2025-07-16 8:34 ` K Prateek Nayak
2025-08-26 8:43 ` Nam Cao
2025-09-03 8:40 ` Sebastian Andrzej Siewior
2025-09-05 13:52 ` Christian Brauner
2026-09-04 8:10 ` [QUESTION] Are these issues PREEMq:PT_RT-specific? Ran Hongyun
2026-09-04 8:11 ` [QUESTION] Are these issues PREEMPT_RT-specific? Ran Hongyun
2026-09-04 8:52 ` Florian Bezdeka [this message]
2026-09-09 3:05 ` Ran Hongyun
2026-09-09 12:49 ` Steven Rostedt
2026-09-04 9:00 ` K Prateek Nayak
2026-09-04 13:47 ` Steven Rostedt
2025-09-05 13:52 ` [PATCH v4 0/1] eventpoll: Fix priority inversion problem Christian Brauner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=63d5cd58e9b85acccdaaac9aed4a8c550cc7b868.camel@siemens.com \
--to=florian.bezdeka@siemens.com \
--cc=axboe@kernel.dk \
--cc=bigeasy@linutronix.de \
--cc=brauner@kernel.org \
--cc=chengzhihao1@huawei.com \
--cc=clrkwllms@kernel.org \
--cc=frederic@kernel.org \
--cc=jack@suse.cz \
--cc=jdamato@fastly.com \
--cc=john.ogness@linutronix.de \
--cc=kprateek.nayak@amd.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-devel@lists.linux.dev \
--cc=linux-rt-users@vger.kernel.org \
--cc=mkarsten@uwaterloo.ca \
--cc=namcao@linutronix.de \
--cc=ranhongyun1@huawei.com \
--cc=rostedt@goodmis.org \
--cc=stable@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=viro@zeniv.linux.org.uk \
--cc=vschneid@redhat.com \
--cc=wozizhi@huawei.com \
--cc=xry111@xry111.site \
--cc=yangerkun@huawei.com \
--cc=yi.zhang@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®