From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buGiJ-0002uV-Di for qemu-devel@nongnu.org; Wed, 12 Oct 2016 06:24:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buGiI-0002XN-DW for qemu-devel@nongnu.org; Wed, 12 Oct 2016 06:24:43 -0400 Message-ID: <57FE1123.9090302@cn.fujitsu.com> Date: Wed, 12 Oct 2016 18:32:03 +0800 From: Changlong Xie MIME-Version: 1.0 References: <1476267508-19499-1-git-send-email-xiecl.fnst@cn.fujitsu.com> In-Reply-To: <1476267508-19499-1-git-send-email-xiecl.fnst@cn.fujitsu.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] nbd: Use CoQueue for free_sema instead of CoMutex List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu devel , qemu block , Stefan Hajnoczi , Fam Zheng , Max Reitz , Kevin Wolf , Eric Blake Cc: zhanghailiang On 10/12/2016 06:18 PM, Changlong Xie wrote: > ---------------------------------------------------------------------------------------- > time request Actions > 29 15(most case) in_flight=15, Coroutine=C15, free_sema->holder=C17, mutex->locked=false > ---------------------------------------------------------------------------------------- > > Per Paolo's suggestion "The simplest fix is to change it to CoQueue, which is like a condition > variable", this patch replaces CoMutex with CoQueue. > > Cc: Wen Congyang > Reported-by: zhanghailiang > Suggested-by: Paolo Bonzini > Signed-off-by: Changlong Xie > --- Please refer to: http://lists.nongnu.org/archive/html/qemu-devel/2016-10/msg02172.html