]> git.baikalelectronics.ru Git - kernel.git/commit
xen/gntdev: safely unmap grants in case they are still in use
authorJennifer Herbert <jennifer.herbert@citrix.com>
Mon, 5 Jan 2015 15:07:46 +0000 (15:07 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Wed, 28 Jan 2015 14:03:15 +0000 (14:03 +0000)
commit7da96ddbfce1a1f085f64cbf23793c5fceb4d40b
tree9dbec8c554c05a2dde6dad9c040dba740486c077
parent489ab89dbdf75d0b99aaacd0f3cf21d213646109
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 <jennifer.herbert@citrix.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/gntdev.c