From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTDRo-0004Uk-C7 for qemu-devel@nongnu.org; Mon, 07 Oct 2013 12:14:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTDRh-0005Ws-J5 for qemu-devel@nongnu.org; Mon, 07 Oct 2013 12:14:16 -0400 Received: from mail-qc0-f179.google.com ([209.85.216.179]:53827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTDRh-0005We-Eu for qemu-devel@nongnu.org; Mon, 07 Oct 2013 12:14:09 -0400 Received: by mail-qc0-f179.google.com with SMTP id l4so4976262qcv.10 for ; Mon, 07 Oct 2013 09:14:08 -0700 (PDT) From: Mike Day In-Reply-To: <5252A725.6020700@redhat.com> References: <1378976540-10812-1-git-send-email-stefanha@redhat.com> <1378976540-10812-3-git-send-email-stefanha@redhat.com> <877gdy4gwj.fsf@pixel.localdomain> <4C38C504-350E-4492-89A9-AFF84BAE9836@alex.org.uk> <73208DCACC5648DDB3E030CD@Ximines.local> <5252A725.6020700@redhat.com> Date: Mon, 07 Oct 2013 12:14:05 -0400 Message-ID: <877gdpys6q.fsf@pixel.localdomain> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v4 2/3] qemu-timer: make qemu_timer_mod_ns() and qemu_timer_del() thread-safe List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Alex Bligh Cc: Ping Fan Liu , Stefan Hajnoczi , qemu-devel@nongnu.org, Anthony Liguori Paolo Bonzini writes: > Il 30/09/2013 15:34, Alex Bligh ha scritto: >> >> I think the most likely change here is that the walkers might >> move outside the BQL. Given modification of this list is so rare, >> the lock would be very very read heavy, so RCU is probably a >> sensible option. > > I agree. Keeping the write side on the BQL is sane, but RCU-protecting > the read side actually makes the rules simpler. > > Mike, would you like to give it a shot? Yes, I will. I'll have a patchset for review within a couple of days. Mike -- Mike Day | + 1 919 371-8786 | ncmike@ncultra.org "Endurance is a Virtue"