Received: from eggs.gnu.org ([2001:4830:134:3::10]:44550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6aXL-0001kA-Dz for qemu-devel@nongnu.org; Tue, 06 Aug 2013 02:14:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V6aXK-0003ob-KJ for qemu-devel@nongnu.org; Tue, 06 Aug 2013 02:14:27 -0400 Received: from mail.avalus.com ([2001:41c8:10:1dd::10]:59095) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6aXK-0003oI-E4 for qemu-devel@nongnu.org; Tue, 06 Aug 2013 02:14:26 -0400 Date: Tue, 06 Aug 2013 07:14:08 +0100 From: Alex Bligh Message-ID: <59EB603C6E4CC916BB559D6E@nimrod.local> In-Reply-To: References: <1375688006-16780-1-git-send-email-pingfank@linux.vnet.ibm.com> <63B4777BD7AC5F31EC6F509D@Ximines.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: [Qemu-devel] [PATCH 0/4]: timers thread-safe stuff Reply-To: Alex Bligh List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: liu ping fan Cc: Kevin Wolf , Alex Bligh , Jan Kiszka , qemu-devel@nongnu.org, Stefan Hajnoczi , Paolo Bonzini , MORITA Kazutaka Pingfan, --On 6 August 2013 13:37:02 +0800 liu ping fan wrote: >> I think you may need to protect a little more. >> > Yes. There is still race issue left. If Stefanha and you will not do > it, I am pleased to do that. I think you've probably got a better view of what to put in than I have. I'd just stick a couple of dumb mutexes in and wait until someone complains about performance. Quite happy to do that but your approach appeared a bit more nuanced. -- Alex Bligh