[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 05/10] qcow2: Use coroutines
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 05/10] qcow2: Use coroutines |
Date: |
Fri, 29 Jul 2011 14:20:05 +0100 |
On Tue, Jul 26, 2011 at 12:49 PM, Kevin Wolf <address@hidden> wrote:
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
> block/qcow2-cluster.c | 26 +++---
> block/qcow2.c | 240
> ++++++++++++++++++-------------------------------
> block/qcow2.h | 5 +-
> 3 files changed, 102 insertions(+), 169 deletions(-)
I like this. The only thing that I would like to see is comments
explain what "lock" protects and why.
As I understand it lock is needed because the metadata accesses which
use bdrv_pread() and friends will yield. So it is necessary to
prevent in-memory qcow2 metadata from getting corrupted during these
operations.
Stefan
- [Qemu-devel] [PATCH 00/10] block: Coroutine support, Kevin Wolf, 2011/07/26
- [Qemu-devel] [PATCH 01/10] block: Add bdrv_co_readv/writev, Kevin Wolf, 2011/07/26
- [Qemu-devel] [PATCH 02/10] block: Emulate AIO functions with bdrv_co_readv/writev, Kevin Wolf, 2011/07/26
- [Qemu-devel] [PATCH 04/10] coroutines: Locks, Kevin Wolf, 2011/07/26
- [Qemu-devel] [PATCH 03/10] block: Add bdrv_co_readv/writev emulation, Kevin Wolf, 2011/07/26
- [Qemu-devel] [PATCH 05/10] qcow2: Use coroutines, Kevin Wolf, 2011/07/26
- Re: [Qemu-devel] [PATCH 05/10] qcow2: Use coroutines,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 08/10] coroutines: Use one global bottom half for CoQueue, Kevin Wolf, 2011/07/26
- [Qemu-devel] [PATCH 06/10] qcow: Use coroutines, Kevin Wolf, 2011/07/26
- [Qemu-devel] [PATCH 07/10] async: Remove AsyncContext, Kevin Wolf, 2011/07/26
- [Qemu-devel] [PATCH 10/10] block: Use bdrv_co_* instead of synchronous versions in coroutines, Kevin Wolf, 2011/07/26
- [Qemu-devel] [PATCH 09/10] posix-aio-compat: Allow read after EOF, Kevin Wolf, 2011/07/26