RDMA/odp: Remove broken debugging call to invalidate_range
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 9 Oct 2019 16:09:35 +0000 (13:09 -0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 28 Oct 2019 19:41:14 +0000 (16:41 -0300)
commit46870b2391d5163e84180e051fdabadd502d8b44
tree422ea77709dc782164d7c09a9cc3a0593a7a4fc9
parent09689703d29a3b75c510c198c3aca85d7d8b50c7
RDMA/odp: Remove broken debugging call to invalidate_range

invalidate_range() also obtains the umem_mutex which is being held at this
point, so if this path were was ever called it would deadlock. Thus
conclude the debugging never triggers and rework it into a simple WARN_ON
and leave things as they are.

While here add a note to explain how we could possibly get inconsistent
page pointers.

Link: https://lore.kernel.org/r/20191009160934.3143-16-jgg@ziepe.ca
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/umem_odp.c