xen/grant: introduce func gnttab_unmap_refs_sync()
authorBob Liu <bob.liu@oracle.com>
Fri, 3 Apr 2015 06:42:59 +0000 (14:42 +0800)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 27 Apr 2015 10:41:12 +0000 (11:41 +0100)
commitb44166cd46e28dd608d5baa5873047a40f32919c
tree799b236c472067869782b2cf937d9d0d87852fc4
parent325d73bf8fea8af2227240b7305253fb052d3a68
xen/grant: introduce func gnttab_unmap_refs_sync()

There are several place using gnttab async unmap and wait for
completion, so move the common code to a function
gnttab_unmap_refs_sync().

Signed-off-by: Bob Liu <bob.liu@oracle.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/block/xen-blkback/blkback.c
drivers/xen/gntdev.c
drivers/xen/grant-table.c
include/xen/grant_table.h