]> git.baikalelectronics.ru Git - kernel.git/commit
percpu_ref: implement percpu_ref_is_dying()
authorTejun Heo <tj@kernel.org>
Tue, 6 Jan 2015 15:26:10 +0000 (10:26 -0500)
committerTejun Heo <tj@kernel.org>
Tue, 6 Jan 2015 15:26:10 +0000 (10:26 -0500)
commitab3bea0f83e1d5b5b820a3ea9ad989e37e816e99
tree86a550f40df9f004913f5b6db4b1e3b69e7d040e
parent1fed02b7768f3e71f118e03c3d53b49869eb8710
percpu_ref: implement percpu_ref_is_dying()

Implement percpu_ref_is_dying() which tests whether the ref is dying
or dead.  This is useful to determine the current state when a
percpu_ref is used as a cyclic on/off switch via kill and reinit.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Kent Overstreet <kmo@daterainc.com>
include/linux/percpu-refcount.h