From: "Paul E. McKenney" <paulmck@kernel.org>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Andrea Parri <parri.andrea@gmail.com>,
will@kernel.org, peterz@infradead.org, boqun.feng@gmail.com,
npiggin@gmail.com, dhowells@redhat.com, j.alglave@ucl.ac.uk,
luc.maranget@inria.fr, akiyks@gmail.com, dlustig@nvidia.com,
joel@joelfernandes.org, linux-kernel@vger.kernel.org,
hernan.poncedeleon@huaweicloud.com,
jonas.oberhauser@huaweicloud.com
Subject: Re: New locking test for the paulmckrcu/litmus github archive
Date: Thu, 6 Jun 2024 12:00:22 -0700 [thread overview]
Message-ID: <469cb89f-24b3-487e-bd66-a2b4ebddfed2@paulmck-laptop> (raw)
In-Reply-To: <51b94313-ed74-4507-a354-eb418389fdaf@rowland.harvard.edu>
On Thu, Jun 06, 2024 at 02:52:02PM -0400, Alan Stern wrote:
> On Thu, Jun 06, 2024 at 10:57:42AM -0700, Paul E. McKenney wrote:
> > On Thu, Jun 06, 2024 at 01:21:28PM -0400, Alan Stern wrote:
> > > Okay. Don't we already have a litmus test in the archive that really
> > > does create a deadlock? Something like: Lock Lock Unlock Unlock, all
> > > using the same lock variable?
> >
> > We do have these guys:
> >
> > auto/C-RR-GR+RR-R+RR-R.litmus
> > auto/C-RR-GR+RR-R.litmus
> > auto/C-RW-GR+RW-R+RW-R.litmus
> > auto/C-RW-GR+RW-R.litmus
> > auto/C-WR-GR+WR-R+WR-R.litmus
> > auto/C-WR-GR+WR-R.litmus
> > auto/C-WW-GR+WW-R+WW-R.litmus
> > auto/C-WW-GR+WW-R.litmus
> > A synchronize_rcu() in an RCU read-side critical section.
> >
> > I added a manual/locked/self-deadlock.litmus, which is shown at the
> > end of this email. Omitting the nested self-deadlocking acquisition
> > and release gives one state with blank line. ;-)
>
> Hah, because there is no "exists" clause and no variables other than the
> spinlock itself.
;-) ;-) ;-)
> > Or should I add a spin_is_locked() in order to get a non-empty
> > state line?
>
> It's fine the way it is.
Very good, pushed.
Thanx, Paul
prev parent reply other threads:[~2024-06-06 19:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-05 14:47 Alan Stern
2024-06-05 18:25 ` Paul E. McKenney
2024-06-05 18:40 ` Alan Stern
2024-06-06 17:07 ` Paul E. McKenney
2024-06-06 17:21 ` Alan Stern
2024-06-06 17:57 ` Paul E. McKenney
2024-06-06 18:52 ` Alan Stern
2024-06-06 19:00 ` Paul E. McKenney [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=469cb89f-24b3-487e-bd66-a2b4ebddfed2@paulmck-laptop \
--to=paulmck@kernel.org \
--cc=akiyks@gmail.com \
--cc=boqun.feng@gmail.com \
--cc=dhowells@redhat.com \
--cc=dlustig@nvidia.com \
--cc=hernan.poncedeleon@huaweicloud.com \
--cc=j.alglave@ucl.ac.uk \
--cc=joel@joelfernandes.org \
--cc=jonas.oberhauser@huaweicloud.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luc.maranget@inria.fr \
--cc=npiggin@gmail.com \
--cc=parri.andrea@gmail.com \
--cc=peterz@infradead.org \
--cc=stern@rowland.harvard.edu \
--cc=will@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
all inboxes | Powered by JetHome®