]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita35391a0f9045f43a9e167126a744cd8a7fa7ef4
tree85adca1c927a4a119487a65c9e4f1261a7f3f1aa
parentebe56c3131510dcb9ba743309eb4f89a95da7d4a
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