RDMA/hfi1: Remove use of kmap()
authorIra Weiny <ira.weiny@intel.com>
Tue, 22 Jun 2021 06:14:19 +0000 (23:14 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 24 Jun 2021 18:07:08 +0000 (15:07 -0300)
commit36f5625af34c89d6c5426c43d321520d668c584c
treec6bc10ac988c1443700d9f99a21587a881c54ecc
parent7364e74d48ec094f46f6a5abfd91dcebece94c0c
RDMA/hfi1: 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 sdma does not need to be global.  Use the new
kmap_local_page() which works with PKS and may provide better performance
for this thread local mapping anyway.

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

Link: https://lore.kernel.org/r/20210622061422.2633501-2-ira.weiny@intel.com
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hfi1/sdma.c