[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH 10/16] qcow2: Delay the COW
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [RFC PATCH 10/16] qcow2: Delay the COW |
Date: |
Thu, 20 Sep 2012 08:58:23 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 |
Am 19.09.2012 20:47, schrieb Blue Swirl:
> On Tue, Sep 18, 2012 at 11:40 AM, Kevin Wolf <address@hidden> wrote:
>> Signed-off-by: Kevin Wolf <address@hidden>
>> ---
>> block/qcow2-cluster.c | 29 +++++++++++++++++++++++++++++
>> block/qcow2.c | 31 ++++++++++++++++++++++++++++---
>> block/qcow2.h | 10 ++++++++++
>> 3 files changed, 67 insertions(+), 3 deletions(-)
>>
>> diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c
>> index a89d68d..0f50888 100644
>> --- a/block/qcow2-cluster.c
>> +++ b/block/qcow2-cluster.c
>> @@ -791,6 +791,34 @@ out:
>> return i;
>> }
>>
>> +struct KickL2Meta {
>> + QEMUBH *bh;
>> + QCowL2Meta *m;
>> +};
>> +
>> +static void kick_l2meta_bh(void *opaque)
>> +{
>> + struct KickL2Meta *k = opaque;
>> + QCowL2Meta *m = k->m;
>> +
>> + qemu_bh_delete(k->bh);
>> + free(k);
>
> You use g_malloc() below.
Oops! Thanks, will fix.
Kevin
- Re: [Qemu-devel] [RFC PATCH 09/16] qcow2: Move COW and L2 update into own coroutine, (continued)
[Qemu-devel] [RFC PATCH 13/16] qcow2: Change handle_dependency to byte granularity, Kevin Wolf, 2012/09/18
[Qemu-devel] [RFC PATCH 11/16] qcow2: Add error handling to the l2meta coroutine, Kevin Wolf, 2012/09/18
[Qemu-devel] [RFC PATCH 10/16] qcow2: Delay the COW, Kevin Wolf, 2012/09/18
[Qemu-devel] [RFC PATCH 15/16] qcow2: Cancel COW when overwritten, Kevin Wolf, 2012/09/18