[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/6] qcow2: Move BLKDBG_EVENT out of the lock
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 5/6] qcow2: Move BLKDBG_EVENT out of the lock |
Date: |
Thu, 6 Dec 2012 14:32:59 +0100 |
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 <address@hidden>
---
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
- [Qemu-devel] [PATCH 0/6] blkdebug/qcow2/qemu-iotests: Add some AIO testing, Kevin Wolf, 2012/12/06
- [Qemu-devel] [PATCH 4/6] qemu-io: Add AIO debugging commands, Kevin Wolf, 2012/12/06
- [Qemu-devel] [PATCH 2/6] blkdebug: Factor out remove_rule(), Kevin Wolf, 2012/12/06
- [Qemu-devel] [PATCH 1/6] blkdebug: Allow usage without config file, Kevin Wolf, 2012/12/06
- [Qemu-devel] [PATCH 6/6] qemu-iotests: Test concurrent cluster allocations, Kevin Wolf, 2012/12/06
- [Qemu-devel] [PATCH 5/6] qcow2: Move BLKDBG_EVENT out of the lock,
Kevin Wolf <=
- [Qemu-devel] [PATCH 3/6] blkdebug: Implement suspend/resume of AIO requests, Kevin Wolf, 2012/12/06