commit | 450b1f6f56350c630e795f240dc5a77aa8aa2419 | [log] [tgz] |
---|---|---|
author | Andreas Gruenbacher <agruenba@redhat.com> | Thu Mar 29 08:07:46 2018 +0100 |
committer | Bob Peterson <rpeterso@redhat.com> | Thu Apr 12 09:41:19 2018 -0700 |
tree | d6809eb52cf4317836ddc5e51f582a72bb2a9c9a | |
parent | e241e3f2bf975788a1b70dff2eb5180ca395b28e [diff] |
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>