Re: [PATCH] refcount: introduce refcount_is_one() helper function

From: Peter Zijlstra
Date: Thu Nov 18 2021 - 02:42:35 EST


On Thu, Nov 18, 2021 at 11:53:28AM +0800, Yajun Deng wrote:
> There are many cases where it is necessary to determine if refcount is one,
> introduce refcount_is_one() helper function for these cases.

Give me one that is not racy?