From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W270u-0003Zh-K2 for qemu-devel@nongnu.org; Sat, 11 Jan 2014 17:26:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W270o-0003Zf-K3 for qemu-devel@nongnu.org; Sat, 11 Jan 2014 17:26:44 -0500 Received: from mx1.redhat.com ([209.132.183.28]:2643) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W270o-0003Zb-By for qemu-devel@nongnu.org; Sat, 11 Jan 2014 17:26:38 -0500 Message-ID: <52D1C57C.3040706@redhat.com> Date: Sat, 11 Jan 2014 23:28:12 +0100 From: Max Reitz MIME-Version: 1.0 References: <1386940979-3824-1-git-send-email-kwolf@redhat.com> <1386940979-3824-16-git-send-email-kwolf@redhat.com> In-Reply-To: <1386940979-3824-16-git-send-email-kwolf@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 15/24] block: Allow waiting for overlapping requests between begin/end List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , qemu-devel@nongnu.org Cc: pbonzini@redhat.com, pl@kamp.de, stefanha@redhat.com On 13.12.2013 14:22, Kevin Wolf wrote: > Previously, it was not possible to use wait_for_overlapping_requests() > between tracked_request_begin()/end() because it would wait for itself. > > Ignore the current request in the overlap check and run more of the > bdrv_co_do_preadv/pwritev code with a BdrvTrackedRequest present. > > Signed-off-by: Kevin Wolf > --- > block.c | 38 ++++++++++++++++++++------------------ > 1 file changed, 20 insertions(+), 18 deletions(-) Reviewed-by: Max Reitz