]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
xen-blkback: add remove_requested to xen_blkif and some declares
authorJoe Jin <joe.jin@oracle.com>
Wed, 3 Aug 2011 06:05:04 +0000 (14:05 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 3 Aug 2011 13:57:32 +0000 (09:57 -0400)
Add remove_requested to xen_blkif and some declares.

Signed-off-by: Joe Jin <joe.jin@oracle.com>
Cc: Daniel Stodden <daniel.stodden@citrix.com>
Cc: Jens Axboe <jaxboe@fusionio.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Annie Li <annie.li@oracle.com>
Cc: Ian Campbell <Ian.Campbell@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/common.h

index 9e40b283a4685c38820c20e0d5bb26f1d6d74be5..acda757b461d8aa071c5b84257bce0f05173442b 100644 (file)
@@ -49,6 +49,7 @@
        pr_debug(DRV_PFX "(%s:%d) " fmt ".\n",  \
                 __func__, __LINE__, ##args)
 
+#define WPRINTK(fmt, args...) printk(KERN_WARNING "xen-blkback: " fmt, ##args)
 
 /* Not a real protocol.  Used to generate ring structs which contain
  * the elements common to all protocols only.  This way we get a
@@ -145,6 +146,7 @@ struct xen_blkif {
        /* Back pointer to the backend_info. */
        struct backend_info     *be;
        /* Private fields. */
+       bool                    remove_requested;
        spinlock_t              blk_ring_lock;
        atomic_t                refcnt;
 
@@ -198,6 +200,9 @@ int xen_blkbk_flush_diskcache(struct xenbus_transaction xbt,
 
 struct xenbus_device *xen_blkbk_xenbus(struct backend_info *be);
 
+void xen_vbd_sync(struct xen_vbd *vbd);
+void xen_blkback_close(struct xen_blkif *blkif);
+
 static inline void blkif_get_x86_32_req(struct blkif_request *dst,
                                        struct blkif_x86_32_request *src)
 {