[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH 2/3] qcow2: Always execute preallocate() in a co
From: |
Max Reitz |
Subject: |
Re: [Qemu-block] [PATCH 2/3] qcow2: Always execute preallocate() in a coroutine |
Date: |
Mon, 9 Oct 2017 23:57:29 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
On 2017-10-09 23:55, Max Reitz wrote:
> Some qcow2 functions (at least perform_cow()) expect s->lock to be
> taken. Therefore, if we want to make use of them, we should execute
> preallocate() (as "preallocate_co") in a coroutine so that we can use
> the qemu_co_mutex_* functions.
>
> Signed-off-by: Max Reitz <address@hidden>
> ---
> block/qcow2.c | 41 ++++++++++++++++++++++++++++++++++-------
> 1 file changed, 34 insertions(+), 7 deletions(-)
Cc: address@hidden
signature.asc
Description: OpenPGP digital signature
- [Qemu-block] [PATCH 0/3] qcow2: Fix preallocated truncation, Max Reitz, 2017/10/09
- [Qemu-block] [PATCH 1/3] qcow2: Fix unaligned preallocated truncation, Max Reitz, 2017/10/09
- [Qemu-block] [PATCH 2/3] qcow2: Always execute preallocate() in a coroutine, Max Reitz, 2017/10/09
- [Qemu-block] [PATCH 3/3] iotests: Add cluster_size=64k to 125, Max Reitz, 2017/10/09
- Re: [Qemu-block] [PATCH 0/3] qcow2: Fix preallocated truncation, Max Reitz, 2017/10/11
- Re: [Qemu-block] [PATCH 0/3] qcow2: Fix preallocated truncation, Stefan Hajnoczi, 2017/10/11