[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] sheepdog: implement direct write semantics
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v2] sheepdog: implement direct write semantics |
Date: |
Thu, 10 Jan 2013 10:04:01 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Jan 10, 2013 at 04:03:47PM +0800, Liu Yuan wrote:
> From: Liu Yuan <address@hidden>
>
> Sheepdog supports both writeback/writethrough write but has not yet supported
> DIRECTIO semantics which bypass the cache completely even if Sheepdog daemon
> is
> set up with cache enabled.
>
> Suppose cache is enabled on Sheepdog daemon size, the new cache control is
>
> cache=writeback # enable the writeback semantics for write
> cache=writethrough # enable the emulated writethrough semantics for write
> cache=directsync # disable cache competely
>
> Guest WCE toggling on the run time to toggle writeback/writethrough is also
> supported.
>
> Cc: MORITA Kazutaka <address@hidden>
> Cc: Kevin Wolf <address@hidden>
> Cc: Stefan Hajnoczi <address@hidden>
> Signed-off-by: Liu Yuan <address@hidden>
> ---
> v2: adopt to current emulated writethrough cache setting
>
> block/sheepdog.c | 70
> +++++++++++++++++++++++++++++++-----------------------
> 1 file changed, 40 insertions(+), 30 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>