qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] qcow2-cache: conditionally call bdrv_flush() in


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH] qcow2-cache: conditionally call bdrv_flush() in qcow2_cache_flush()
Date: Thu, 13 Nov 2014 11:53:52 +0000
User-agent: Mutt/1.5.23 (2014-03-12)

On Fri, Nov 07, 2014 at 09:30:59AM +0800, Zhang Haoyu wrote:
> Needless to call bdrv_flush() in qcow2_cache_flush()
> if no cache entry is dirty.

Did you audit all qcow2 cache callers to make sure they don't rely on
the cache flush?

Maybe it's not safe to optimize it away if callers assume previously
written data will be persisted as part of qcow2 cache flushing.

We need to be very careful when optimizing out cache flushes so that we
don't introduce data integrity problems.

> 
> Signed-off-by: Zhang Haoyu <address@hidden>
> ---
>  block/qcow2-cache.c | 24 +++++++++++++-----------
>  1 file changed, 13 insertions(+), 11 deletions(-)

Please post benchmark configuration and performance results, if you ran
any.  Data makes performance optimization patches much more convincing.

Attachment: pgpGria80g6xl.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]