From: "Paul E. McKenney" <paulmck@linux.ibm.com>
To: Akira Yokosawa <akiyks@gmail.com>
Cc: perfbook@vger.kernel.org
Subject: Re: [Not a patch] Possible incomplete sentence/clause in defer/hazptr
Date: Mon, 22 Apr 2019 04:10:43 -0700 [thread overview]
Message-ID: <20190422111042.GD8363@linux.ibm.com> (raw)
In-Reply-To: <24979174-47b3-a087-ecd1-0c2d0ba12397@gmail.com>
On Mon, Apr 22, 2019 at 07:19:36AM +0900, Akira Yokosawa wrote:
> On Sun, 21 Apr 2019 11:45:06 -0700, Paul E. McKenney wrote:
> > On Mon, Apr 22, 2019 at 12:25:00AM +0900, Akira Yokosawa wrote:
> >> Hi Paul,
> >>
> >> The sentence shown below as a diff looks incomplete to me.
> >> What is your intention here?
> >
> > Not that! Thank you for catching this!!! Please see below for an
> > attempted fix. Thoughts?
> >
> > I have queued your four patches. My problems are (1) force of habit
> > and (2) failing to remember that comment-only lines are discarded.
>
> And please remember the option "keepcomment=yes" can change the
> behavior. This reminds me that I need to update style guide.
Ah, good point! And please do!
> > I am not all that happy with the #ifdef, but it beats the alternative.
> > But what I did in this case was to just remove the fprintf() in favor
> > of the BUG_ON(). ;-)
>
> Yes, that sounds reasonable.
Very good, I have pushed these changes.
Thanx, Paul
> > ------------------------------------------------------------------------
> >
> > commit 72e774fda87eaead9637d887426b701ec229664d
> > Author: Paul E. McKenney <paulmck@linux.ibm.com>
> > Date: Sun Apr 21 11:33:49 2019 -0700
> >
> > defer/hazptr: Fix broken statement of restart location constraints
> >
> > Reported-by: Akira Yokosawa <akiyks@gmail.com>
> > Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
> >
> > diff --git a/defer/hazptr.tex b/defer/hazptr.tex
> > index 4b61d34d334c..b491c590ae2d 100644
> > --- a/defer/hazptr.tex
> > +++ b/defer/hazptr.tex
> > @@ -239,9 +239,12 @@ Which is a very good thing, because B's successor is the now-freed
> > element~C, which means that Thread~0's subsequent accesses might have
> > resulted in arbitrarily horrible memory corruption, especially if the
> > memory for element~C had since been re-allocated for some other purpose.
> > -Therefore, statically allocated global variables), hazard-pointer
> > -readers must typically restart the full traversal in the face of a
> > -concurrent deletion.
> > +Therefore, hazard-pointer readers must typically restart the full
> > +traversal in the face of a concurrent deletion.
> > +Often the restart must go back to some global (and thus immortal) pointer,
> > +but it is sometimes possible to restart at some intermediate location
> > +if that location is guaranteed to still be live, for example, due to
> > +the current thread holding a lock, a reference count, etc.
>
> Looks good to me!
>
> Thanks, Akira
>
> >
> > \QuickQuiz{}
> > Readers must ``typically'' restart?
> >
>
prev parent reply other threads:[~2019-04-22 11:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-21 10:03 [PATCH 0/4] Updates and fixes in defer/hazptr and formal/dyntickrcu Akira Yokosawa
2019-04-21 10:06 ` [PATCH 1/4] defer/hazptr: Extract snippet from hazptr.c Akira Yokosawa
2019-04-21 10:07 ` [PATCH 2/4] defer/hazptr: Fix trivial typo Akira Yokosawa
2019-04-21 10:09 ` [PATCH 3/4] RCU.bib: Add entry of git commit of Tree RCU Akira Yokosawa
2019-04-21 10:10 ` [PATCH 4/4] formal/dyntickrcu: Adjust context and fix typo Akira Yokosawa
2019-04-21 15:25 ` [Not a patch] Possible incomplete sentence/clause in defer/hazptr Akira Yokosawa
[not found] ` <20190421184506.GD24840@linux.ibm.com>
2019-04-21 22:19 ` Akira Yokosawa
2019-04-22 11:10 ` 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=20190422111042.GD8363@linux.ibm.com \
--to=paulmck@linux.ibm.com \
--cc=akiyks@gmail.com \
--cc=perfbook@vger.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