diff options
| author | Tejun Heo <[email protected]> | 2015-01-06 15:26:10 +0000 |
|---|---|---|
| committer | Tejun Heo <[email protected]> | 2015-01-06 15:26:10 +0000 |
| commit | 4c907baf36d8339f393bb576d0bab29194d0e6ad (patch) | |
| tree | 86a550f40df9f004913f5b6db4b1e3b69e7d040e /lib/string.c | |
| parent | percpu_ref: remove unnecessary ACCESS_ONCE() in percpu_ref_tryget_live() (diff) | |
| download | kernel-4c907baf36d8339f393bb576d0bab29194d0e6ad.tar.gz kernel-4c907baf36d8339f393bb576d0bab29194d0e6ad.zip | |
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 <[email protected]>
Cc: Kent Overstreet <[email protected]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions
