]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/irdma: Remove use of kmap()
authorIra Weiny <ira.weiny@intel.com>
Tue, 22 Jun 2021 16:56:22 +0000 (09:56 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 24 Jun 2021 18:07:01 +0000 (15:07 -0300)
commitc760e0dd3f7de772cfbe3c3edc3152563c73955a
treea544669c2fa6e2bf100c409e45ffaf0882847e2f
parent23a36bd11161c640da5bfcbb0f7a2d140be955ba
RDMA/irdma: Remove use of kmap()

kmap() is being deprecated and will break uses of device dax after PKS
protection is introduced.[1]

The kmap() used in the irdma CM driver is thread local.  Therefore
kmap_local_page() is sufficient to use and may provide performance
benefits as well.  kmap_local_page() will work with device dax and pgmap
protected pages.

Use kmap_local_page() instead of kmap().

[1] https://lore.kernel.org/lkml/20201009195033.3208459-59-ira.weiny@intel.com/

Link: https://lore.kernel.org/r/20210622165622.2638628-1-ira.weiny@intel.com
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/irdma/cm.c