From: Kuba Piecuch <jpiecuch@google.com>
To: Andrea Righi <arighi@nvidia.com>
Cc: Tejun Heo <tj@kernel.org>, David Vernet <void@manifault.com>,
Changwoo Min <changwoo@igalia.com>,
Ryan Newton <newton@meta.com>,
sched-ext@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] sched_ext: Take rcu_read_lock() explicitly in sub-cap kfuncs
Date: Tue, 24 Nov 2026 10:29:23 +0000 [thread overview]
Message-ID: <20261124102813.217423-2-jpiecuch@google.com> (raw)
In-Reply-To: <awVEqEZdHReap399@gpd4>
Hi Andrea,
On Tue, 24 Nov 2026 08:02, Andrea Righi wrote:
> I'd drop this patch. The IRQ-disabled region already provides the
> required lifetime protection and the existing checks recognize it.
>
> If a future change introduces another dereference here, it should use
> the check appropriate to that protection, such as rcu_dereference_all().
>
> I think we don't want to introduce additional RCU read-side bookkeeping
> on every call to accommodate that possibility.
Makes sense, especially with patch 1 switching to rcu_dereference_all()
as well. Will drop this patch in v2.
Thanks,
Kuba
prev parent reply other threads:[~2026-11-24 10:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 15:00 [PATCHSET sched_ext/for-7.4-fixes] sched_ext: Fix and tighten RCU usage in kfuncs Kuba Piecuch
2026-11-23 15:00 ` [PATCH 1/2] sched_ext: Fix suspicious RCU usage in KF_RCU_PROTECTED kfuncs Kuba Piecuch
2026-11-24 8:00 ` Andrea Righi
2026-11-24 10:29 ` Kuba Piecuch
2026-11-23 15:00 ` [PATCH 2/2] sched_ext: Take rcu_read_lock() explicitly in sub-cap kfuncs Kuba Piecuch
2026-11-24 8:02 ` Andrea Righi
2026-11-24 10:29 ` Kuba Piecuch [this message]
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=20261124102813.217423-2-jpiecuch@google.com \
--to=jpiecuch@google.com \
--cc=arighi@nvidia.com \
--cc=changwoo@igalia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=newton@meta.com \
--cc=sched-ext@lists.linux.dev \
--cc=tj@kernel.org \
--cc=void@manifault.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.