All of lore.kernel.org
 help / color / mirror / Atom feed
From: Elad Lahav <e2lahav@gmail.com>
To: perfbook@vger.kernel.org
Subject: Section 9.5: Nobody expects the Spanish Acquisition!
Date: Tue, 21 Dec 2021 10:20:52 -0500	[thread overview]
Message-ID: <CAJbg=FWZG2EicBGKBbVzYnhH7oT3FqkwY738pmra9G9riGssVQ@mail.gmail.com> (raw)

Hi Paul,

As promised, I have a potentially more interesting comment regarding
Section 9.5. Throughout this section, from the very first example, the
writer uses release semantics, but the readers are not obligated to
use acquire semantics, at least on sensible architectures (with
apologies to employees of HP nee Compaq nee Digital).

If I understand correctly, these relaxed semantics are the result of
an address dependency, with the data protected by the RCU critical
section residing in a structure whose address is stored by the pointer
dereferenced by a reader. The reader cannot consider any data outside
of this structure as protected by the critical section. This is a
critical point without which the examples won't work reliably.

Am I missing something? If not, I think that this point should be
emphasized early on, with a link to Section 15.2.3.

--Elad

             reply	other threads:[~2021-12-21 15:21 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-21 15:20 Elad Lahav [this message]
2021-12-22  8:21 ` Section 9.5: Nobody expects the Spanish Acquisition! Akira Yokosawa
2021-12-22 12:15   ` Elad Lahav
2021-12-22 14:35     ` Akira Yokosawa
2021-12-22 18:19       ` Paul E. McKenney
     [not found]         ` <CAJbg=FUHcqEXE+MgXif0n=e09xYFoGFfmhjvY1=pnC6QCCRh2w@mail.gmail.com>
2021-12-23  2:29           ` Paul E. McKenney
2021-12-23 12:22             ` Akira Yokosawa
2021-12-23 12:46               ` Elad Lahav
2021-12-23 12:59                 ` Akira Yokosawa
2021-12-23 14:26                   ` Elad Lahav
2022-01-04  0:05                     ` Paul E. McKenney
2022-01-04  0:48                       ` Elad Lahav
2022-01-04 11:47                         ` Elad Lahav
2022-01-05  2:04                           ` Paul E. McKenney
2022-01-06 21:15                             ` Paul E. McKenney
2021-12-23 17:26                 ` Paul E. McKenney

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='CAJbg=FWZG2EicBGKBbVzYnhH7oT3FqkwY738pmra9G9riGssVQ@mail.gmail.com' \
    --to=e2lahav@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 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.