Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1192838

Re: [PATCH v3 1/8] atomics: add acquire/release/relaxed variants of some atomic operations

From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: [PATCH v3 1/8] atomics: add acquire/release/relaxed variants of some atomic operations
Date 2015-07-27 11:20 +0200
Message-ID <pQMJJ-5Ga-45@gated-at.bofh.it> (permalink)
References <pPLPH-80T-3@gated-at.bofh.it> <pPLPJ-80T-33@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Jul 24, 2015 at 03:04:34PM +0100, Will Deacon wrote:

> This patch introduces three new ordering semantics for these operations:
> 
>   - *_relaxed: No ordering guarantees. This is similar to what we have
>                already for the non-return atomics (e.g. atomic_add).
> 
>   - *_acquire: ACQUIRE semantics, similar to smp_load_acquire.
> 
>   - *_release: RELEASE semantics, similar to smp_store_release.

Do we want to further specify that for the RmW operations the Read/load
will provide the acquire and the Write/store the release?


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 1/8] atomics: add acquire/release/relaxed variants of some atomic operations Will Deacon <will.deacon@arm.com> - 2015-07-24 16:10 +0200
  Re: [PATCH v3 1/8] atomics: add acquire/release/relaxed variants of  some atomic operations Peter Zijlstra <peterz@infradead.org> - 2015-07-27 11:20 +0200
    Re: [PATCH v3 1/8] atomics: add acquire/release/relaxed variants of  some atomic operations Will Deacon <will.deacon@arm.com> - 2015-07-27 12:30 +0200

csiph-web