All of lore.kernel.org
 help / color / mirror / Atom feed
From: Akira Yokosawa <akiyks@gmail.com>
To: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: perfbook@vger.kernel.org, Akira Yokosawa <akiyks@gmail.com>
Subject: [RFC PATCH 01/12] advsync: LOCK/UNLOCK -> ACQUIRE/RELEASE (part 1)
Date: Sat, 1 Apr 2017 11:10:52 +0900	[thread overview]
Message-ID: <507f8523-3128-fab1-f047-b70716765376@gmail.com> (raw)
In-Reply-To: <b00db59a-a0b0-42d6-7546-01872ad3e404@gmail.com>

From c8b05232a7665495892fd11ec02e34b1b36b55ac Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@gmail.com>
Date: Sat, 25 Mar 2017 23:58:48 +0900
Subject: [RFC PATCH 01/12] advsync: LOCK/UNLOCK -> ACQUIRE/RELEASE (part 1)

This mostly corresponds to the former half of commit 2e4f5382d12a
("locking/doc: Rename LOCK/UNLOCK to ACQUIRE/RELEASE")[1] in Linux
kernel repository, but only replaces what is present in perfbook
now.

Note:"memory-barriers.txt" has more details not included here.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2e4f5382d12a

Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
---
 advsync/memorybarriers.tex | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/advsync/memorybarriers.tex b/advsync/memorybarriers.tex
index 165b5cb..29d3af1 100644
--- a/advsync/memorybarriers.tex
+++ b/advsync/memorybarriers.tex
@@ -1555,36 +1555,36 @@ There are a couple of types of implicit memory barriers, so called
 because they are embedded into locking primitives:

 \begin{enumerate}
-\item	LOCK operations and
-\item	UNLOCK operations.
+\item	ACQUIRE operations and
+\item	RELEASE operations.
 \end{enumerate}

-\paragraph{LOCK Operations}
+\paragraph{ACQUIRE Operations}

-A lock operation acts as a one-way permeable barrier.
+An acuire operation acts as a one-way permeable barrier.
 It guarantees that all memory
-operations after the LOCK operation will appear to happen after the LOCK
+operations after the ACQUIRE operation will appear to happen after the ACQUIRE
 operation with respect to the other components of the system.

-Memory operations that occur before a LOCK operation may appear to happen
+Memory operations that occur before an ACQUIRE operation may appear to happen
 after it completes.

-A LOCK operation should almost always be paired with an UNLOCK operation.
+An ACQUIRE operation should almost always be paired with a RELEASE operation.

-\paragraph{UNLOCK Operations}
+\paragraph{RELEASE Operations}

-Unlock operations also act as a one-way permeable barrier.
+Release operations also act as a one-way permeable barrier.
 It guarantees that all
-memory operations before the UNLOCK operation will appear to happen before
-the UNLOCK operation with respect to the other components of the system.
+memory operations before the RELEASE operation will appear to happen before
+the RELEASE operation with respect to the other components of the system.

-Memory operations that occur after an UNLOCK operation may appear to
+Memory operations that occur after a RELEASE operation may appear to
 happen before it completes.

-LOCK and UNLOCK operations are guaranteed to appear with respect to each
+ACQUIRE and RELEASE operations are guaranteed to appear with respect to each
 other strictly in the order specified.

-The use of LOCK and UNLOCK operations generally precludes the need for
+The use of ACQUIRE and RELEASE operations generally precludes the need for
 other sorts of memory barrier (but note the exceptions mentioned in the
 Section~\ref{sec:advsync:Device Operations}).

-- 
2.7.4



  reply	other threads:[~2017-04-01  2:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-01  2:09 [RFC PATCH 00/12] advsync: Rename LOCK/UNLOCK to ACQUIRE/RELEASE Akira Yokosawa
2017-04-01  2:10 ` Akira Yokosawa [this message]
2017-04-01  2:11 ` [RFC PATCH 02/12] advsync: LOCK/UNLOCK -> ACQUIRE/RELEASE (part 2) Akira Yokosawa
2017-04-01  2:12 ` [RFC PATCH 03/12] advsync: LOCK/UNLOCK -> ACQUIRE/RELEASE (part 3) Akira Yokosawa
2017-04-01  2:13 ` [RFC PATCH 04/12] advsync: More replacement to ACQUIRE Akira Yokosawa
2017-04-01  2:14 ` [RFC PATCH 05/12] advsync: Add footnote mentioning LOCK/UNLOCK wording Akira Yokosawa
2017-04-01  2:16 ` [RFC PATCH 06/12] advsync: Modify usage of definite article Akira Yokosawa
2017-04-01  2:17 ` [RFC PATCH 07/12] advsync: Substitute 'guarantee' with 'implication' Akira Yokosawa
2017-04-01  2:19 ` [RFC PATCH 08/12] advsync: Properly use nbsp Akira Yokosawa
2017-04-01  2:21 ` [RFC PATCH 09/12] advsync: Move footnote on transitivity forward Akira Yokosawa
2017-04-01  2:22 ` [RFC PATCH 10/12] advsync: Fix line number called out Akira Yokosawa
2017-04-01  2:23 ` [RFC PATCH 11/12] advsync: Add extdash shortcut Akira Yokosawa
2017-04-01  2:23 ` [RFC PATCH 12/12] advsync: Avoid indent after minipage Akira Yokosawa
2017-04-04 16:02 ` [RFC PATCH 00/12] advsync: Rename LOCK/UNLOCK to ACQUIRE/RELEASE 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=507f8523-3128-fab1-f047-b70716765376@gmail.com \
    --to=akiyks@gmail.com \
    --cc=paulmck@linux.vnet.ibm.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.