mirror of https://gitee.com/openkylin/linux.git
01e6a61ace
Although it's not documented anywhere, there is an expectation that atomic64_inc_not_zero() returns a result which fits in an int. This is the behaviour implemented on all arches except powerpc. This has caused at least one bug in practice, in the percpu-refcount code, where the long result from our atomic64_inc_not_zero() was truncated to an int leading to lost references and stuck systems. That was worked around in that code in commit |
||
---|---|---|
.. | ||
asm | ||
uapi/asm |