introduce kref_put_mutex()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 18 Aug 2012 00:10:46 +0000 (20:10 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 22 Aug 2012 14:24:41 +0000 (10:24 -0400)
commit8ad5db8a8ddbe3bd33078863a027011e28f1f4ee
treee54d9b3a0f6dba580dec882046b99e576c33387c
parent934ad4c235f87dcb9206abdfa22922358999afab
introduce kref_put_mutex()

equivalent of
mutex_lock(mutex);
if (!kref_put(kref, release))
mutex_unlock(mutex);

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/kref.h