[Sheepdog] [PATCH v6 7/8] collie: read the cached objects if any for collie operation

Liu Yuan namei.unix at gmail.com
Sat Mar 31 09:34:10 CEST 2012


On 03/31/2012 03:20 PM, MORITA Kazutaka wrote:

> - Read requests:
>   read from a object cache always when the cache exists
> 
> - Write requests:
>   flush and remove a object cache if SD_FLAG_CMD_CACHE is not set
> 
> Isn't this okay for collie, too?


Who set SD_FLAG_CMD_CACHE for collie? user or let collie decide itself?

For Guests, SD_FLAG_CMD_CACHE is set once we start up QEMU with object
cache enabled. So we'd need to distinguish R&W requests. If we see
SD_FLAG_CMD_CACHE, sheep can simply flush and delete the cache. So this
looks extraneous for Guest request handling.

Thanks,
Yuan



More information about the sheepdog mailing list