From: Johan Hovold <johan@kernel.org>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: Tzung-Bi Shih <tzungbi@kernel.org>,
Bartosz Golaszewski <brgl@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"Rafael J . Wysocki" <rafael@kernel.org>,
Danilo Krummrich <dakr@kernel.org>, Shuah Khan <shuah@kernel.org>,
Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
linux-kernel@vger.kernel.org, driver-core@lists.linux.dev,
linux-kselftest@vger.kernel.org,
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Subject: Re: [PATCH] revocable: hide the implementation details from users
Date: Fri, 13 Feb 2026 09:27:57 +0100 [thread overview]
Message-ID: <aY7gjQEcRq6kvHpn@hovoldconsulting.com> (raw)
In-Reply-To: <de233174-795f-4549-abfe-08060016c541@paulmck-laptop>
On Tue, Feb 10, 2026 at 08:59:20PM -0800, Paul E. McKenney wrote:
> On Wed, Feb 11, 2026 at 02:05:26AM +0000, Tzung-Bi Shih wrote:
> > On Mon, Feb 09, 2026 at 05:13:17AM -0600, Bartosz Golaszewski wrote:
> > > On Fri, 6 Feb 2026 23:02:44 +0100, "Paul E. McKenney" <paulmck@kernel.org> said:
> > > > On Fri, Feb 06, 2026 at 11:32:06AM +0100, Bartosz Golaszewski wrote:
> > > >> Could you please take a look and say if the design looks sane to you?
> > > >> Especially the double SRCU on the revocable_provider.
> > > >
> > > > The first patch in the above URL adds SRCU, and the other
> > > > two add various tests. I do not see a double SRCU, just an
> > > > srcu_read_lock() in revocable_try_access() and an srcu_read_unlock()
> > > > in revocable_withdraw_access().
> > > This series didn't have it yet, it appeared as a fix to a race reported after
> > > it was queued, sorry for the confusion. I'm talking about this bit[1] here.
> > > It returns an __rcu-annotated pointer, forcing the user to keep and manage it.
> > Please hold off on reviewing the patch and the "double SRCU" usage for now.
> > I'll remove the second RCU in the next version, which should serve as a
> > better starting point for a clean review.
In case Paul or anyone else reading this wonders, the "revocable" code
was reverted last Friday so that's why the links Bartosz posted are
broken:
https://lore.kernel.org/lkml/20260204142849.22055-1-johan@kernel.org/
Johan
prev parent reply other threads:[~2026-02-13 8:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-06 10:32 [PATCH] revocable: hide the implementation details from users Bartosz Golaszewski
2026-02-06 15:08 ` Greg Kroah-Hartman
2026-02-06 22:02 ` Paul E. McKenney
2026-02-09 11:13 ` Bartosz Golaszewski
2026-02-11 2:05 ` Tzung-Bi Shih
2026-02-11 4:59 ` Paul E. McKenney
2026-02-13 8:27 ` Johan Hovold [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=aY7gjQEcRq6kvHpn@hovoldconsulting.com \
--to=johan@kernel.org \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=bartosz.golaszewski@oss.qualcomm.com \
--cc=brgl@kernel.org \
--cc=dakr@kernel.org \
--cc=driver-core@lists.linux.dev \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=paulmck@kernel.org \
--cc=rafael@kernel.org \
--cc=shuah@kernel.org \
--cc=tzungbi@kernel.org \
/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