diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2014-02-12 03:34:03 (GMT) |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-02-12 03:34:03 (GMT) |
commit | abb97b8c502a270d59c0c2e1ecea78ad752372ee (patch) | |
tree | 3348620a7ab9f4cedee4ecc1bb4a170915ba7a52 /drivers/block/xen-blkback/common.h | |
parent | 49f5baa5109897b8cee491e8a7c4d74052b6bc1e (diff) | |
download | linux-abb97b8c502a270d59c0c2e1ecea78ad752372ee.tar.xz |
xen-blkback: init persistent_purge_work work_struct
Initialize persistent_purge_work work_struct on xen_blkif_alloc (and
remove the previous initialization done in purge_persistent_gnt). This
prevents flush_work from complaining even if purge_persistent_gnt has
not been used.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Tested-by: Sander Eikelenboom <linux@eikelenboom.it>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/xen-blkback/common.h')
-rw-r--r-- | drivers/block/xen-blkback/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/xen-blkback/common.h b/drivers/block/xen-blkback/common.h index 9eb34e2..be05277 100644 --- a/drivers/block/xen-blkback/common.h +++ b/drivers/block/xen-blkback/common.h @@ -385,6 +385,7 @@ int xen_blkbk_flush_diskcache(struct xenbus_transaction xbt, int xen_blkbk_barrier(struct xenbus_transaction xbt, struct backend_info *be, int state); struct xenbus_device *xen_blkbk_xenbus(struct backend_info *be); +void xen_blkbk_unmap_purged_grants(struct work_struct *work); static inline void blkif_get_x86_32_req(struct blkif_request *dst, struct blkif_x86_32_request *src) |