]> git.baikalelectronics.ru Git - kernel.git/commit
KEYS: Make the key reaper non-reentrant
authorDavid Howells <dhowells@redhat.com>
Mon, 22 Aug 2011 13:09:20 +0000 (14:09 +0100)
committerJames Morris <jmorris@namei.org>
Mon, 22 Aug 2011 23:57:36 +0000 (09:57 +1000)
commitf3157ca7e2e60b07965b8e64bf34baff46087254
tree4f243698284aace64f4b5c9e5b9bee107c10e13b
parentf1d5ea7c4b2425d9a0c90cc0c09f84ba618b1898
KEYS: Make the key reaper non-reentrant

Make the key reaper non-reentrant by sticking it on the appropriate system work
queue when we queue it.  This will allow it to have global state and drop
locks.  It should probably be non-reentrant already as it may spend a long time
holding the key serial spinlock, and so multiple entrants can spend long
periods of time just sitting there spinning, waiting to get the lock.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/keys/key.c