summaryrefslogtreecommitdiff
path: root/drivers/block/xen-blkback/common.h
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-05-04 17:07:27 -0400
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-05-05 13:43:24 -0400
commit24f567f952aa308c3352f3340b9d296fc72bd066 (patch)
tree6cbc385ed612254b9eb0a77c0934804f85697e94 /drivers/block/xen-blkback/common.h
parent73d842af27b863cbc816e75003edbc287bf57130 (diff)
xen/blkback: Add support for BLKIF_OP_FLUSH_DISKCACHE and drop BLKIF_OP_WRITE_BARRIER.
We drop the support for 'feature-barrier' and add in the support for the 'feature-flush-cache' if the real backend storage supports flushing. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/block/xen-blkback/common.h')
-rw-r--r--drivers/block/xen-blkback/common.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/block/xen-blkback/common.h b/drivers/block/xen-blkback/common.h
index 16af388268e7..af93837e1295 100644
--- a/drivers/block/xen-blkback/common.h
+++ b/drivers/block/xen-blkback/common.h
@@ -53,6 +53,7 @@ struct vbd {
u32 pdevice; /* phys device that this vbd maps to */
struct block_device *bdev;
sector_t size; /* Cached size parameter */
+ bool flush_support;
};
struct backend_info;
@@ -85,7 +86,7 @@ struct blkif_st {
int st_rd_req;
int st_wr_req;
int st_oo_req;
- int st_br_req;
+ int st_f_req;
int st_rd_sect;
int st_wr_sect;
@@ -120,8 +121,8 @@ int xen_blkif_xenbus_init(void);
irqreturn_t xen_blkif_be_int(int irq, void *dev_id);
int xen_blkif_schedule(void *arg);
-int xen_blkbk_barrier(struct xenbus_transaction xbt,
- struct backend_info *be, int state);
+int xen_blkbk_flush_diskcache(struct xenbus_transaction xbt,
+ struct backend_info *be, int state);
struct xenbus_device *xen_blkbk_xenbus(struct backend_info *be);