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

From: Davidlohr Bueso
Date: Fri Jun 24 2016 - 15:36:01 EST


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