]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Sat, 18 Aug 2012 20:51:27 +0000 (16:51 -0400)
commitcd95bead4822963b1d159116f158db2b1d2eccda
treee54d9b3a0f6dba580dec882046b99e576c33387c
parentdaa34ce8b46e1f25a71cc3f3881d9d4fa176fcb5
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