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>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user