xen-blkfront: Introduce BLKIF_OP_FLUSH_DISKCACHE support.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 3 May 2011 16:01:11 +0000 (12:01 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 12 May 2011 12:56:03 +0000 (08:56 -0400)
commitedf6ef59ec7ee82cadc93528229c4097b6c92a7e
treeb864418f5ba692535f619b7fd38dc7cf4960f830
parent6dcfb751c927879399e404b3885cbdef7d8d368b
xen-blkfront: Introduce BLKIF_OP_FLUSH_DISKCACHE support.

If the backend supports the 'feature-flush-cache' mode, use that
instead of the 'feature-barrier' support.

Currently there are three backends that support the 'feature-flush-cache'
mode: NetBSD, Solaris and Linux kernel. The 'flush' option is much
light-weight version than the 'barrier' support so lets try to use as
there are no filesystems in the kernel that use full barriers anymore.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkfront.c