lkml.org 
[lkml]   [2009]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] virtio-blk: add support for cache flush
Date
On Fri, 18 Sep 2009 03:27:42 am Christoph Hellwig wrote:
>
> Recent qemu has added a VIRTIO_BLK_F_FLUSH flag to advertise that the
> virtual disk has a volatile write cache that needs to be flushed. In case
> we see this feature implement tell the Linux block layer about the fact
> and use the new VIRTIO_BLK_T_FLUSH to flush the cache when required. This
> allows for an correct and simple implementation of write barriers.

Thanks Christoph, this looks very nice. Applied, will push soon.

> + * VIRTIO_BLK_T_OUT may be combinaed with VIRTIO_BLK_T_SCSI_CMD or
> + * VIRTIO_BLK_T_BARRIER. VIRTIO_BLK_T_FLUSH is a command of it's own
> + * and may no be comined with any of the other flags.

I fixed the typos here :)

Thanks!
Rusty.


\
 
 \ /
  Last update: 2009-09-22 08:37    [W:0.113 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site