xen-blkback: init persistent_purge_work work_struct
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 12 Feb 2014 03:34:03 +0000 (20:34 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 12 Feb 2014 03:34:03 +0000 (20:34 -0700)
commitabb97b8c502a270d59c0c2e1ecea78ad752372ee
tree3348620a7ab9f4cedee4ecc1bb4a170915ba7a52
parent49f5baa5109897b8cee491e8a7c4d74052b6bc1e
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>
drivers/block/xen-blkback/blkback.c
drivers/block/xen-blkback/common.h
drivers/block/xen-blkback/xenbus.c