From: Daniel De Graaf Date: Thu, 3 Feb 2011 17:19:01 +0000 (-0500) Subject: xen-gntdev: Add reference counting to maps X-Git-Tag: v2.6.39-rc1~439^3~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68b025c813c2eb41ff25628e3d4952d5185eb1a4;p=pandora-kernel.git 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 Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed