Received: from eggs.gnu.org ([208.118.235.92]:45716) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucwe2-0005oC-VS for qemu-devel@nongnu.org; Thu, 16 May 2013 07:46:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ucwdy-0003Fu-4J for qemu-devel@nongnu.org; Thu, 16 May 2013 07:46:50 -0400 Received: from mail-bk0-x232.google.com ([2a00:1450:4008:c01::232]:62529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ucwdx-0003Fi-Tv for qemu-devel@nongnu.org; Thu, 16 May 2013 07:46:46 -0400 Received: by mail-bk0-f50.google.com with SMTP id ik5so1610947bkc.9 for ; Thu, 16 May 2013 04:46:45 -0700 (PDT) Date: Thu, 16 May 2013 13:46:42 +0200 From: Stefan Hajnoczi Message-ID: <20130516114642.GE8853@stefanha-thinkpad.redhat.com> References: <1368632937-32272-1-git-send-email-pbonzini@redhat.com> <1368632937-32272-4-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1368632937-32272-4-git-send-email-pbonzini@redhat.com> Subject: Re: [Qemu-devel] [PATCH 03/12] rcu: add rcu library List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Jan Kiszka , David Gibson , qemu-devel@nongnu.org, qemulist@gmail.com On Wed, May 15, 2013 at 05:48:48PM +0200, Paolo Bonzini wrote: > +RCU PATTERNS > +============ > + > +Many patterns using read-writer locks translate directly to RCU, with > +the advantages of higher scalability and deadlock immunity. > + > +In general, RCU can be used whenever it is possible to create a new > +"version" of a data structure every time the updater runs. This may > +sound like a very strict restriction, however: > + > +- the updater does not mean "everything that writes to a data structure", > + but rather "everything that involves a reclamation step". See the > + array example below > + > +- in some cases, creating a new version of a data structure may actually > + be very cheap. For example, modifying the "next" pointer of a singly > + linked list is effectively creating a new version of the list. > + > + > +them however are worth noting. ?