From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tgba5-0003eT-W3 for qemu-devel@nongnu.org; Thu, 06 Dec 2012 08:33:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TgbZi-0003aF-5h for qemu-devel@nongnu.org; Thu, 06 Dec 2012 08:33:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:31142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgbZh-0003a7-Tv for qemu-devel@nongnu.org; Thu, 06 Dec 2012 08:33:14 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qB6DXDhg011497 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 6 Dec 2012 08:33:13 -0500 From: Kevin Wolf Date: Thu, 6 Dec 2012 14:32:59 +0100 Message-Id: <1354800780-10683-6-git-send-email-kwolf@redhat.com> In-Reply-To: <1354800780-10683-1-git-send-email-kwolf@redhat.com> References: <1354800780-10683-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 5/6] qcow2: Move BLKDBG_EVENT out of the lock List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@redhat.com We want to use these events to suspend requests for testing concurrent AIO requests. Suspending requests while they are holding the CoMutex is rather boring for this purpose. Signed-off-by: Kevin Wolf --- block/qcow2.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index c1ff31f..0a08ec7 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -835,8 +835,8 @@ static coroutine_fn int qcow2_co_writev(BlockDriverState *bs, cur_nr_sectors * 512); } - BLKDBG_EVENT(bs->file, BLKDBG_WRITE_AIO); qemu_co_mutex_unlock(&s->lock); + BLKDBG_EVENT(bs->file, BLKDBG_WRITE_AIO); trace_qcow2_writev_data(qemu_coroutine_self(), (cluster_offset >> 9) + index_in_cluster); ret = bdrv_co_writev(bs->file, -- 1.7.6.5