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


Groups > linux.kernel > #1228933

Re: [PATCH 5/5] locking/mcs: Relax to atomic/release semantics

From Linus Torvalds <torvalds@linux-foundation.org>
Newsgroups linux.kernel
Subject Re: [PATCH 5/5] locking/mcs: Relax to atomic/release semantics
Date 2015-09-20 20:30 +0200
Message-ID <qaRx7-7Lc-1@gated-at.bofh.it> (permalink)
References <qaJSW-5lZ-5@gated-at.bofh.it> <qaJSW-5lZ-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, Sep 20, 2015 at 3:11 AM, Davidlohr Bueso <dave@stgolabs.net> wrote:
> ... by using acquire semantics where appropriate As such, weakly
> ordered archs can benefit from more relaxed use of barriers when
> issuing atomics.

Again, subject is wrong.

Also, I actually think you should avoid using the word "relax", since
that actually has a separate meaning for the atomics, and it is *not*
using those relaxed semantics, and they wouldn't work anyway.

So you might as well just say something like

    "locking: use acquire/release semantics"

or similar. Ok?

                Linus
--
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 0/5] locking: Adopt relaxed barrier semantics Davidlohr Bueso <dave@stgolabs.net> - 2015-09-20 12:20 +0200
  [PATCH 2/5] locking/mutex: Relax to atomic/release semantics Davidlohr Bueso <dave@stgolabs.net> - 2015-09-20 12:20 +0200
    Re: [PATCH 2/5] locking/mutex: Relax to atomic/release semantics Linus Torvalds <torvalds@linux-foundation.org> - 2015-09-20 20:30 +0200
      Re: [PATCH 2/5] locking/mutex: Relax to atomic/release semantics Davidlohr Bueso <dave@stgolabs.net> - 2015-09-20 20:50 +0200
  [PATCH 5/5] locking/mcs: Relax to atomic/release semantics Davidlohr Bueso <dave@stgolabs.net> - 2015-09-20 12:20 +0200
    Re: [PATCH 5/5] locking/mcs: Relax to atomic/release semantics Linus Torvalds <torvalds@linux-foundation.org> - 2015-09-20 20:30 +0200
  [PATCH 1/5] asm-generic: Add _{relaxed|acquire|release}() variants for inc/dec atomics Davidlohr Bueso <dave@stgolabs.net> - 2015-09-20 12:20 +0200
  [PATCH 3/5] locking/rtmutex: Relax to acquire/release semantics Davidlohr Bueso <dave@stgolabs.net> - 2015-09-20 12:20 +0200

csiph-web