|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Re: rcu support in xen
On 25/03/07 09:28 +0100, Keir Fraser wrote: On 24/3/07 19:22, "Mike D. Day" <ncmike@xxxxxxxxxx> wrote:
I see, the thing that threw me off was the sparse checker code in the
linux rcu_read_lock() implementation, as a comparison. However, it
doesn't do anything either.
By the way, the linux implementation does not require a dummy lock
object:
#define rcu_read_lock() \
do { \
preempt_disable(); \
__acquire(RCU); \
} while(0)
This is better - in my opinion, it makes it clearer that the rcu reader
is not actually synchronizing on a spinlock.
I'd be happy to submit a patch for the reader lock/unlock macros. Mike -- Mike D. Day IBM LTC Cell: 919 412-3900 Sametime: ncmike@xxxxxxxxxx AIM: ncmikeday Yahoo: ultra.runner PGP key: http://www.ncultra.org/ncmike/pubkey.asc _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |