summaryrefslogtreecommitdiffstats
path: root/include/xen
diff options
context:
space:
mode:
authorBob Liu <bob.liu@oracle.com>2015-04-03 14:42:59 +0800
committerDavid Vrabel <david.vrabel@citrix.com>2015-04-27 11:41:12 +0100
commitb44166cd46e28dd608d5baa5873047a40f32919c (patch)
tree799b236c472067869782b2cf937d9d0d87852fc4 /include/xen
parent325d73bf8fea8af2227240b7305253fb052d3a68 (diff)
downloadlinux-b44166cd46e28dd608d5baa5873047a40f32919c.tar.bz2
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>
Diffstat (limited to 'include/xen')
-rw-r--r--include/xen/grant_table.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/xen/grant_table.h b/include/xen/grant_table.h
index 143ca5ffab7a..4478f4b4aae2 100644
--- a/include/xen/grant_table.h
+++ b/include/xen/grant_table.h
@@ -191,6 +191,7 @@ int gnttab_unmap_refs(struct gnttab_unmap_grant_ref *unmap_ops,
struct gnttab_unmap_grant_ref *kunmap_ops,
struct page **pages, unsigned int count);
void gnttab_unmap_refs_async(struct gntab_unmap_queue_data* item);
+int gnttab_unmap_refs_sync(struct gntab_unmap_queue_data *item);
/* Perform a batch of grant map/copy operations. Retry every batch slot