summaryrefslogtreecommitdiff
path: root/include/linux/key-type.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2011-11-16 11:15:54 +0000
committerJames Morris <jmorris@namei.org>2011-11-17 09:35:32 +1100
commit7845bc3964756240863ae453ffe4f7ee27ddc954 (patch)
tree3a3b9bf568184a3ae82bc581b63e1576ce99d7c8 /include/linux/key-type.h
parent24942c8e5cc8696064ee207ff29d4cf21f70dafc (diff)
KEYS: Give key types their own lockdep class for key->sem
Give keys their own lockdep class to differentiate them from each other in case a key of one type has to refer to a key of another type. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Mimi Zohar <zohar@us.ibm.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'include/linux/key-type.h')
-rw-r--r--include/linux/key-type.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/key-type.h b/include/linux/key-type.h
index 9efd081bb31e..39e3c082c49d 100644
--- a/include/linux/key-type.h
+++ b/include/linux/key-type.h
@@ -92,6 +92,7 @@ struct key_type {
/* internal fields */
struct list_head link; /* link in types list */
+ struct lock_class_key lock_class; /* key->sem lock class */
};
extern struct key_type key_type_keyring;