]> git.baikalelectronics.ru Git - kernel.git/commit
lockref: Add lockref_put_not_zero
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 29 Mar 2018 07:07:46 +0000 (08:07 +0100)
committerBob Peterson <rpeterso@redhat.com>
Thu, 12 Apr 2018 16:41:19 +0000 (09:41 -0700)
commit4423448d7ddd07a3824190658e35b273f62641b7
treed6809eb52cf4317836ddc5e51f582a72bb2a9c9a
parent2aea9aec46e6d9f77d4d51ad6111053df9fe16c0
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>
include/linux/lockref.h
lib/lockref.c