diff options
author | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2011-02-03 18:19:01 +0100 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-02-14 20:08:51 +0100 |
commit | 68b025c813c2eb41ff25628e3d4952d5185eb1a4 (patch) | |
tree | 94a35faa65ea9cf5956ee6eaa04ab65c7abb17ff /drivers/xen/grant-table.c | |
parent | xen-gntdev: Use find_vma rather than iterating our vma list manually (diff) | |
download | linux-68b025c813c2eb41ff25628e3d4952d5185eb1a4.tar.xz linux-68b025c813c2eb41ff25628e3d4952d5185eb1a4.zip |
xen-gntdev: Add reference counting to maps
This allows userspace to perform mmap() on the gntdev device and then
immediately close the filehandle or remove the mapping using the
remove ioctl, with the mapped area remaining valid until unmapped.
This also fixes an infinite loop when a gntdev device is closed
without first unmapping all areas.
Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/grant-table.c')
0 files changed, 0 insertions, 0 deletions