]> git.baikalelectronics.ru Git - kernel.git/commit
xen/gntdev: correctly unmap unlinked maps in mmu notifier
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Wed, 2 Jan 2013 22:57:12 +0000 (22:57 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 15 Jan 2013 21:01:30 +0000 (16:01 -0500)
commit0b4e1911731f92448a4cf3678e2e1998c6bbf3be
tree4a640870d7121933f8a94d0fbe7e5fe7014e1bf2
parentad269201f4dd2d06f977282763da3b3bb6b2169d
xen/gntdev: correctly unmap unlinked maps in mmu notifier

If gntdev_ioctl_unmap_grant_ref is called on a range before unmapping
it, the entry is removed from priv->maps and the later call to
mn_invl_range_start won't find it to do the unmapping. Fix this by
creating another list of freeable maps that the mmu notifier can search
and use to unmap grants.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/gntdev.c