Re: [GIT PULL] percpu fix for v4.10-rc6

From: David Howells
Date: Wed Feb 01 2017 - 05:01:16 EST


Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:

> The return value isn't the value of the atomic variable.
>
> The return value is whether the increment happened or not (ie the "was it not zero and
> could be incremented" part?)

Okay, fair enough. I was thinking of it as atomic_long_inc_return() - which
obviously it isn't.

David