diff options
author | Christoph Hellwig <hch@lst.de> | 2009-09-17 21:57:42 +0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-09-23 16:56:36 +0400 |
commit | f1b0ef062602713c2c7cfa12362d5d90ed01c5f6 (patch) | |
tree | 30a130141b7c4b69ff20d134734acd40f1ee0960 /arch/x86/lguest/boot.c | |
parent | 3ca4f5ca73057a617f9444a91022d7127041970a (diff) | |
download | linux-f1b0ef062602713c2c7cfa12362d5d90ed01c5f6.tar.xz |
virtio_blk: add support for cache flush
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.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch/x86/lguest/boot.c')
0 files changed, 0 insertions, 0 deletions