diff options
author | Kevin Wolf <kwolf@redhat.com> | 2012-12-06 14:32:59 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-12-12 12:33:48 +0100 |
commit | 67a7a0ebe5ef0f337d5f7e7e618b08c562a55da0 (patch) | |
tree | 52ddfc8011d8000d61a57e6a1c3f7b9e8ccb7212 /block | |
parent | 41c695c749b84d40e53e64faadedc0392aaea07e (diff) |
qcow2: Move BLKDBG_EVENT out of the lock
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 <kwolf@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/qcow2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/qcow2.c b/block/qcow2.c index c1ff31f482..0a08ec74c7 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, |