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


Groups > linux.kernel > #1430896

Re: [PATCH -tip 00/12] locking/atomics: Add and use inc,dec calls for FETCH-OP flavors

From Davidlohr Bueso <dave@stgolabs.net>
Newsgroups linux.kernel
Subject Re: [PATCH -tip 00/12] locking/atomics: Add and use inc,dec calls for FETCH-OP flavors
Date 2016-06-24 21:40 +0200
Message-ID <rNF7j-3VP-5@gated-at.bofh.it> (permalink)
References <rMdG9-4no-3@gated-at.bofh.it> <rNCsN-28b-7@gated-at.bofh.it> <rNDfb-2Hg-5@gated-at.bofh.it> <rNDIe-3c2-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, 24 Jun 2016, KY Srinivasan wrote:

>How so? Can you expand on the racy part. The subtraction is done on a local copy of
>the value.

Yeah, you're right. I took a look at the generated code and I was unnecessarily worried
about the window between the return value and the subtraction.

Thanks,
Davidlohr

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


Thread

Re: [PATCH -tip 00/12] locking/atomics: Add and use inc,dec calls  for FETCH-OP flavors James Bottomley <James.Bottomley@HansenPartnership.com> - 2016-06-24 18:50 +0200
  Re: [PATCH -tip 00/12] locking/atomics: Add and use inc,dec calls  for FETCH-OP flavors Davidlohr Bueso <dave@stgolabs.net> - 2016-06-24 19:40 +0200
    Re: [PATCH -tip 00/12] locking/atomics: Add and use inc,dec calls  for FETCH-OP flavors James Bottomley <James.Bottomley@HansenPartnership.com> - 2016-06-24 19:50 +0200
      Re: [PATCH -tip 00/12] locking/atomics: Add and use inc,dec calls  for FETCH-OP flavors Davidlohr Bueso <dave@stgolabs.net> - 2016-06-24 22:40 +0200
    RE: [PATCH -tip 00/12] locking/atomics: Add and use inc,dec calls for  FETCH-OP flavors KY Srinivasan <kys@microsoft.com> - 2016-06-24 20:10 +0200
      Re: [PATCH -tip 00/12] locking/atomics: Add and use inc,dec calls  for FETCH-OP flavors Davidlohr Bueso <dave@stgolabs.net> - 2016-06-24 21:40 +0200
  Re: [PATCH -tip 00/12] locking/atomics: Add and use inc,dec calls  for FETCH-OP flavors Peter Zijlstra <peterz@infradead.org> - 2016-06-24 21:20 +0200

csiph-web