xen/blkback: safely unmap purge persistent grants
authorBob Liu <bob.liu@oracle.com>
Fri, 3 Apr 2015 06:42:58 +0000 (14:42 +0800)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 27 Apr 2015 10:40:10 +0000 (11:40 +0100)
commit325d73bf8fea8af2227240b7305253fb052d3a68
tree668f710fb14540c3ac44fc9dbd83059a8acd1976
parentb787f68c36d49bb1d9236f403813641efa74a031
xen/blkback: safely unmap purge persistent grants

Commit c43cf3ea8385 ("xen-blkback: safely unmap grants in case they
are still in use") use gnttab_unmap_refs_async() to wait until the
mapped pages are no longer in use before unmapping them, but that
commit missed the persistent case.  Purge persistent pages can't be
unmapped either unless no longer in use.

Signed-off-by: Bob Liu <bob.liu@oracle.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/block/xen-blkback/blkback.c