From mboxrd@z Thu Jan 1 00:00:00 1970 From: paulmck@linux.vnet.ibm.com (Paul E. McKenney) Date: Fri, 19 Feb 2010 16:44:27 -0800 Subject: [ltt-dev] lock-free data structures (was Re: [PATCH 12/12] centralize definition of BITS_PER_LONG) In-Reply-To: <4B7F2885.50505@redhat.com> References: <1266260686-17588-1-git-send-email-pbonzini@redhat.com> <1266260686-17588-13-git-send-email-pbonzini@redhat.com> <20100218032554.GG11338@Krystal> <4B7CFE10.8070803@redhat.com> <20100218134600.GA5825@Krystal> <4B7D5C45.9020804@redhat.com> <20100218160934.GA17107@Krystal> <4B7EE590.2010807@redhat.com> <20100219235139.GF6778@linux.vnet.ibm.com> <4B7F2885.50505@redhat.com> Message-ID: <20100220004427.GJ6778@linux.vnet.ibm.com> On Sat, Feb 20, 2010 at 01:10:45AM +0100, Paolo Bonzini wrote: > On 02/20/2010 12:51 AM, Paul E. McKenney wrote: >> Doesn't the use of RCU prevent the ABA scenario, and doesn't that make >> DCAS unnecessary? > > Yeah, looks like it's so! So by wrapping enqueue/dequeue with RCU you > could strip the generation counts (giving the algorithm that is usually > taught for garbage-collected environments only)... nice, I guess DCAS is > not so much needed in the context of liburcu. > > I'll try to write an example. I look forward to seeing it! Thanx, Paul