From: Christoph Hellwig Date: Thu, 17 Sep 2009 17:57:42 +0000 (+0200) Subject: virtio_blk: add support for cache flush X-Git-Tag: v2.6.32-rc1~175^2~5 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1b0ef062602713c2c7cfa12362d5d90ed01c5f6;p=pandora-kernel.git 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 Signed-off-by: Rusty Russell --- Reading git-diff-tree failed