[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: |
MORITA Kazutaka |
Subject: |
Re: [Qemu-devel] [PATCH v2] sheepdog: implement direct write semantics |
Date: |
Fri, 11 Jan 2013 16:35:20 +0900 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) Emacs/23.2 Mule/6.0 (HANACHIRUSATO) |
At Thu, 10 Jan 2013 16:03:47 +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: MORITA Kazutaka <address@hidden>