IB/core: Ensure an invalidate_range callback on ODP MR
authorIra Weiny <ira.weiny@intel.com>
Wed, 13 Mar 2019 19:05:59 +0000 (12:05 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 26 Mar 2019 19:39:40 +0000 (16:39 -0300)
commit4ae27444100f54e6db3a046f086ba4e70e1ac22b
tree85adca1c927a4a119487a65c9e4f1261a7f3f1aa
parenta4b7013db23e93824ac53083eeb3e4efdef4b5b0
IB/core: Ensure an invalidate_range callback on ODP MR

No device supports ODP MR without an invalidate_range callback.

Warn on any any device which attempts to support ODP without supplying
this callback.

Then we can remove the checks for the callback within the code.

This stems from the discussion

https://www.spinics.net/lists/linux-rdma/msg76460.html

...which concluded this code was no longer necessary.

Acked-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/umem.c
drivers/infiniband/core/umem_odp.c