diff options
author | David Howells <dhowells@redhat.com> | 2005-06-23 22:00:53 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-24 00:05:18 -0700 |
commit | 8589b4e00e352f983259140f25a262d973be6bc5 (patch) | |
tree | d53c9b43ee0aaa2d7518a023c4b6373422117506 /Documentation/smp.txt | |
parent | 7888e7ff4ee579442128d7d12a9c9dbf2cf7de6a (diff) | |
download | linux-3.10-8589b4e00e352f983259140f25a262d973be6bc5.tar.gz linux-3.10-8589b4e00e352f983259140f25a262d973be6bc5.tar.bz2 linux-3.10-8589b4e00e352f983259140f25a262d973be6bc5.zip |
[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>
Diffstat (limited to 'Documentation/smp.txt')
0 files changed, 0 insertions, 0 deletions