KEYS: Define a __key_get() wrapper to use rather than atomic_inc()
Define a __key_get() wrapper to use rather than atomic_inc() on the key usage count as this makes it easier to hook in refcount error debugging. Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
@@ -644,7 +644,7 @@ found:
|
||||
/* this races with key_put(), but that doesn't matter since key_put()
|
||||
* doesn't actually change the key
|
||||
*/
|
||||
atomic_inc(&key->usage);
|
||||
__key_get(key);
|
||||
|
||||
error:
|
||||
spin_unlock(&key_serial_lock);
|
||||
|
Reference in New Issue
Block a user