linux-stable/security/keys
David Howells 8589b4e00e [PATCH] Keys: Use RCU to manage session keyring pointer
The attached patch uses RCU to manage the session keyring pointer in struct
signal_struct.  This means that searching need not disable interrupts and get
a the sighand spinlock to access this pointer.  Furthermore, by judicious use
of rcu_read_(un)lock(), this patch also avoids the need to take and put
refcounts on the session keyring itself, thus saving on even more atomic ops.

Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-24 00:05:18 -07:00
..
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
compat.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
internal.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
key.c [PATCH] keys: Discard key spinlock and use RCU for key payload 2005-06-24 00:05:18 -07:00
keyctl.c [PATCH] keys: Discard key spinlock and use RCU for key payload 2005-06-24 00:05:18 -07:00
keyring.c [PATCH] keys: Discard key spinlock and use RCU for key payload 2005-06-24 00:05:18 -07:00
proc.c [PATCH] keys: Discard key spinlock and use RCU for key payload 2005-06-24 00:05:18 -07:00
process_keys.c [PATCH] Keys: Use RCU to manage session keyring pointer 2005-06-24 00:05:18 -07:00
request_key.c [PATCH] Keys: Use RCU to manage session keyring pointer 2005-06-24 00:05:18 -07:00
user_defined.c [PATCH] keys: Discard key spinlock and use RCU for key payload 2005-06-24 00:05:18 -07:00