mm/hmm: remove pgmap checking for devmap pages
authorJason Gunthorpe <jgg@mellanox.com>
Fri, 27 Mar 2020 20:00:13 +0000 (17:00 -0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 27 Mar 2020 23:19:23 +0000 (20:19 -0300)
commit068354ade5dd9e2b07d9b0c57055a681db6f4e37
treed5ff746c751cb951eb25a9b44dd17bf1d48e7bd2
parent08ddddda667b3b7aaac10641418283f78118c5cd
mm/hmm: remove pgmap checking for devmap pages

The checking boils down to some racy check if the pagemap is still
available or not. Instead of checking this, rely entirely on the
notifiers, if a pagemap is destroyed then all pages that belong to it must
be removed from the tables and the notifiers triggered.

Link: https://lore.kernel.org/r/20200327200021.29372-2-jgg@ziepe.ca
Reviewed-by: Ralph Campbell <rcampbell@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Ralph Campbell <rcampbell@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
mm/hmm.c