From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNojj-0005ng-IC for qemu-devel@nongnu.org; Thu, 04 Apr 2013 14:18:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNoje-0002rl-QC for qemu-devel@nongnu.org; Thu, 04 Apr 2013 14:18:11 -0400 Received: from e23smtp09.au.ibm.com ([202.81.31.142]:60391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNoje-0002rW-99 for qemu-devel@nongnu.org; Thu, 04 Apr 2013 14:18:06 -0400 Received: from /spool/local by e23smtp09.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 5 Apr 2013 04:09:23 +1000 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [9.190.235.152]) by d23dlp02.au.ibm.com (Postfix) with ESMTP id 4EB0B2BB0050 for ; Fri, 5 Apr 2013 05:17:55 +1100 (EST) Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r34I4XAb10879384 for ; Fri, 5 Apr 2013 05:04:34 +1100 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r34IHr67029712 for ; Fri, 5 Apr 2013 05:17:54 +1100 From: Anthony Liguori In-Reply-To: References: <1364893452-10604-1-git-send-email-peter.crosthwaite@xilinx.com> <515ABCD1.2070008@redhat.com> <82877867.1048290.1364970927865.JavaMail.root@redhat.com> <515D135B.4020003@redhat.com> <87mwteteot.fsf@codemonkey.ws> Date: Thu, 04 Apr 2013 13:17:48 -0500 Message-ID: <87obdudusz.fsf@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [RFC PATCH] main-loop: Unconditionally unlock iothread List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Amit Shah , Paolo Bonzini , Peter Crosthwaite , qemu-devel@nongnu.org, gson@gson.org Peter Maydell writes: > On 4 April 2013 17:59, Anthony Liguori wrote: >> So I think this is a long way of saying: >> >> Reviewed-by: Anthony Liguori > > Any chance we could update the commit message to include > this more authoritative analysis? Yes, please do. I'm also not sure that just always dropping the lock is the best strategy either. I think a simple counter with a nice comment that explains why we need to periodically drop the lock is a better solution as it gives a way to experiment with the right value to ensure fairness between the threads without having excessing lock acquisition/release. Regards, Anthony Liguori > > thanks > -- PMM