login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
7
Re: [PATCH tip/urgent] rcu: add rcu_access_pointer and rcu_dereference_protected
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Eric Dumazet
Subject:
Re: [PATCH tip/urgent] rcu: add rcu_access_pointer and rcu_dereference_protected
Date: Wednesday, April 7, 2010 - 9:38 am
Le mercredi 07 avril 2010 à 09:26 -0700, Paul E. McKenney a écrit :
quoted text
> This patch adds variants of rcu_dereference() that handle situations > where the RCU-protected data structure cannot change, perhaps due to > our holding the update-side lock, or where the RCU-protected pointer is > only to be fetched, not dereferenced. These are needed due to some > performance concerns with using rcu_dereference() where it is not > required, aside from the need for lockdep/sparse checking. > > The new rcu_access_pointer() primitive is for the case where the pointer > is be fetch and not dereferenced. This primitive may be used without > protection, RCU or otherwise, due to the fact that it uses ACCESS_ONCE(). > > The new rcu_dereference_protected() primitive is for the case where updates > are prevented, for example, due to holding the update-side lock. This > primitive does neither ACCESS_ONCE() nor smp_read_barrier_depends(), so > can only be used when updates are somehow prevented. > > Suggested-by: David Howells <dhowells@redhat.com> > Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com> --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH tip/urgent] rcu: add rcu_access_pointer and rcu_der ...
, Paul E. McKenney
, (Wed Apr 7, 9:26 am)
Re: [PATCH tip/urgent] rcu: add rcu_access_pointer and rcu ...
, Eric Dumazet
, (Wed Apr 7, 9:38 am)
Re: [PATCH tip/urgent] rcu: add rcu_access_pointer and rcu ...
, Mathieu Desnoyers
, (Wed Apr 7, 9:45 am)
Re: [PATCH tip/urgent] rcu: add rcu_access_pointer and rcu ...
, David Howells
, (Wed Apr 7, 10:00 am)
Re: [PATCH tip/urgent] rcu: add rcu_access_pointer and rcu ...
, Paul E. McKenney
, (Wed Apr 7, 10:13 am)
Re: [PATCH tip/urgent] rcu: add rcu_access_pointer and rcu ...
, David Howells
, (Wed Apr 7, 10:20 am)
Re: [PATCH tip/urgent] rcu: add rcu_access_pointer and rcu ...
, Paul E. McKenney
, (Wed Apr 7, 4:00 pm)
Re: [PATCH tip/urgent] rcu: add rcu_access_pointer and rcu ...
, Paul E. McKenney
, (Thu Apr 8, 9:46 am)
Re: [PATCH tip/urgent] rcu: add rcu_access_pointer and rcu ...
, David Howells
, (Thu Apr 8, 12:04 pm)
Re: [PATCH tip/urgent] rcu: add rcu_access_pointer and rcu ...
, Paul E. McKenney
, (Thu Apr 8, 12:53 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Ingo Molnar
Re: [PATCH v3] x86: merge the simple bitops and move them to bitops.h
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Andi Kleen
Re: - romsignature-checksum-cleanup-2.patch removed from -mm tree
Yinghai Lu
[PATCH 09/49] memblock: Remove rmo_size, burry it in arch/powerpc where it belongs
git
:
Junio C Hamano
Re: Teach "git checkout" to use git-show-ref
Christian Jaeger
Re: Problem with Git.pm bidi_pipe methods
Linus Torvalds
[PATCH 1/7] Make unpack_trees_options bit flags actual bitfields
Jon Smirl
stgit: managing signed-off-by lines
Han-Wen Nienhuys
Re: Cleaning up git user-interface warts
git-commits-head
:
Linux Kernel Mailing List
MIPS: Bonito64: Make Loongson independent from Bonito64 code.
Linux Kernel Mailing List
iwlwifi: initialize spinlock before use
Linux Kernel Mailing List
i2c-i801: Add Intel Cougar Point device IDs
Linux Kernel Mailing List
drm/i915: Add information on pinning and fencing to the i915 list debug.
Linux Kernel Mailing List
Btrfs: Disable btree reada during extent backref lookups.
linux-netdev
:
Gerrit Renker
v2 [PATCH 1/4] dccp: Limit feature negotiation to connection setup phase
Richard Cochran
Re: [PATCH v3 3/3] ptp: Added a clock that uses the eTSEC found on the MPC85xx.
Inaky Perez-Gonzalez
[PATCH 40/40] wimax/i2400m: add CREDITS and MAINTAINERS entries
Miloslav Trmac
Re: RFC: Crypto API User-interface
David Miller
Re: [net-next-2.6 PATCH] ixgbevf: Refactor ring parameter re-size
freebsd-current
:
Boris Samorodov
Re: twa + dump = sbwait
韓家標 Bill Hacker
Re: ZFS honesty
Bjoern A. Zeeb
Re: Can not boot 7.0-BETA3 with IPSEC
FreeBSD Tinderbox
[head tinderbox] failure on i386/i386
Rong-en Fan
ad0: setting up DMA failed / FAILURE - load data ?
Colocation donated by:
Syndicate