From: Jennifer Herbert Date: Mon, 5 Jan 2015 15:07:46 +0000 (+0000) Subject: xen/gntdev: safely unmap grants in case they are still in use X-Git-Tag: fixes-v4.0-rc1~162^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=745282256c754ac5ed3dbe2fbef6471dc1373417;p=pandora-kernel.git xen/gntdev: 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. This allows userspace programs to safely use Direct I/O and AIO to a network filesystem which may retain refs to pages in queued skbs after the filesystem I/O has completed. Signed-off-by: Jennifer Herbert Reviewed-by: Stefano Stabellini Signed-off-by: David Vrabel --- Reading git-diff-tree failed