public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Documentation,barriers: Mention smp_cond_acquire()
@ 2016-03-21 21:07 Davidlohr Bueso
  2016-03-23 16:19 ` Paul E. McKenney
  0 siblings, 1 reply; 2+ messages in thread
From: Davidlohr Bueso @ 2016-03-21 21:07 UTC (permalink / raw)
  To: paulmck; +Cc: mingo, linux-doc, linux-kernel, dave, Davidlohr Bueso

... do this next to smp_load_acquire when first mentioning
ACQUIRE. While this call is briefly explained and ctrl
dependencies are mentioned later, it does not hurt the reader.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
---
 Documentation/memory-barriers.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Documentation/memory-barriers.txt b/Documentation/memory-barriers.txt
index 3729cbe60e41..2b5ea9d01a8f 100644
--- a/Documentation/memory-barriers.txt
+++ b/Documentation/memory-barriers.txt
@@ -430,8 +430,9 @@ And a couple of implicit varieties:
      This acts as a one-way permeable barrier.  It guarantees that all memory
      operations after the ACQUIRE operation will appear to happen after the
      ACQUIRE operation with respect to the other components of the system.
-     ACQUIRE operations include LOCK operations and smp_load_acquire()
-     operations.
+     ACQUIRE operations include LOCK operations and both smp_load_acquire()
+     and smp_cond_acquire() operations. The later builds the necessary ACQUIRE
+     semantics from relying on a control dependency and smp_rmb().
 
      Memory operations that occur before an ACQUIRE operation may appear to
      happen after it completes.
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Documentation,barriers: Mention smp_cond_acquire()
  2016-03-21 21:07 [PATCH] Documentation,barriers: Mention smp_cond_acquire() Davidlohr Bueso
@ 2016-03-23 16:19 ` Paul E. McKenney
  0 siblings, 0 replies; 2+ messages in thread
From: Paul E. McKenney @ 2016-03-23 16:19 UTC (permalink / raw)
  To: Davidlohr Bueso; +Cc: mingo, linux-doc, linux-kernel, Davidlohr Bueso

On Mon, Mar 21, 2016 at 02:07:19PM -0700, Davidlohr Bueso wrote:
> ... do this next to smp_load_acquire when first mentioning
> ACQUIRE. While this call is briefly explained and ctrl
> dependencies are mentioned later, it does not hurt the reader.
> 
> Signed-off-by: Davidlohr Bueso <dbueso@suse.de>

Queued for review, thank you, Davidlohr!

							Thanx, Paul

> ---
>  Documentation/memory-barriers.txt | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/memory-barriers.txt b/Documentation/memory-barriers.txt
> index 3729cbe60e41..2b5ea9d01a8f 100644
> --- a/Documentation/memory-barriers.txt
> +++ b/Documentation/memory-barriers.txt
> @@ -430,8 +430,9 @@ And a couple of implicit varieties:
>       This acts as a one-way permeable barrier.  It guarantees that all memory
>       operations after the ACQUIRE operation will appear to happen after the
>       ACQUIRE operation with respect to the other components of the system.
> -     ACQUIRE operations include LOCK operations and smp_load_acquire()
> -     operations.
> +     ACQUIRE operations include LOCK operations and both smp_load_acquire()
> +     and smp_cond_acquire() operations. The later builds the necessary ACQUIRE
> +     semantics from relying on a control dependency and smp_rmb().
> 
>       Memory operations that occur before an ACQUIRE operation may appear to
>       happen after it completes.
> -- 
> 2.1.4
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-23 16:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-21 21:07 [PATCH] Documentation,barriers: Mention smp_cond_acquire() Davidlohr Bueso
2016-03-23 16:19 ` Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox