You need to sign in or sign up before continuing.
-
Tejun Heo authored
Implement percpu_ref_tryget() which fails if the refcnt already reached zero. Note that this is different from the recently renamed percpu_ref_tryget_live() which fails if the refcnt has been killed and is draining the remaining references. percpu_ref_tryget() succeeds on a killed refcnt as long as its current refcnt is above zero. Signed-off-by:
Tejun Heo <tj@kernel.org> Acked-by:
Kent Overstreet <kmo@daterainc.com>
4fb6e250