mbox series

[0/4] Remove use of kmap()

Message ID 20210622061422.2633501-1-ira.weiny@intel.com (mailing list archive)
Headers show
Series Remove use of kmap() | expand

Message

Ira Weiny June 22, 2021, 6:14 a.m. UTC
From: Ira Weiny <ira.weiny@intel.com>

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

These kmap() usages don't need to be global and work fine as thread local
mappings.

Replace these kmap() calls with kmap_local_page() which is more appropriate.

The only final use of kmap() in the RDMA subsystem is in the qib driver which
is pretty old at this point.  The use is pretty convoluted and I doubt systems
using that driver are using persistent memory.  So it is left as is.  If this
is a problem I can dig into converting it as well.

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

Ira Weiny (4):
  RDMA/hfi1: Remove use of kmap()
  RDMA/i40iw: Remove use of kmap()
  RDMA/siw: Remove kmap()
  RDMA/siw: Convert siw_tx_hdt() to kmap_local_page()

 drivers/infiniband/hw/hfi1/sdma.c      |  4 +--
 drivers/infiniband/hw/i40iw/i40iw_cm.c | 10 +++---
 drivers/infiniband/sw/siw/siw_qp_tx.c  | 47 +++++++++++++++-----------
 3 files changed, 34 insertions(+), 27 deletions(-)