diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2018-03-29 09:07:46 +0200 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2018-04-12 18:41:19 +0200 |
commit | 450b1f6f56350c630e795f240dc5a77aa8aa2419 (patch) | |
tree | d6809eb52cf4317836ddc5e51f582a72bb2a9c9a /lib/test_kasan.c | |
parent | Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost (diff) | |
download | linux-450b1f6f56350c630e795f240dc5a77aa8aa2419.tar.xz linux-450b1f6f56350c630e795f240dc5a77aa8aa2419.zip |
lockref: Add lockref_put_not_zero
Put a lockref unless the lockref is dead or its count would become zero.
This is the same as lockref_put_or_lock except that the lock is never
left held.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'lib/test_kasan.c')
0 files changed, 0 insertions, 0 deletions