]> git.openfabrics.org - ~shefty/rdma-dev.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)
commit16a1d0225e22e4e273e6b60a21db95decde666c2
tree4a640870d7121933f8a94d0fbe7e5fe7014e1bf2
parent2512f298cb9886e06938e761c9e924c8448d9ab8
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