[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210622061422.2633501-1-ira.weiny@intel.com>
Date: Mon, 21 Jun 2021 23:14:18 -0700
From: ira.weiny@...el.com
To: Jason Gunthorpe <jgg@...pe.ca>
Cc: Ira Weiny <ira.weiny@...el.com>,
Mike Marciniszyn <mike.marciniszyn@...nelisnetworks.com>,
Dennis Dalessandro <dennis.dalessandro@...nelisnetworks.com>,
Doug Ledford <dledford@...hat.com>,
Faisal Latif <faisal.latif@...el.com>,
Shiraz Saleem <shiraz.saleem@...el.com>,
Bernard Metzler <bmt@...ich.ibm.com>,
Kamal Heib <kheib@...hat.com>, linux-rdma@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 0/4] Remove use of kmap()
From: Ira Weiny <ira.weiny@...el.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(-)
--
2.28.0.rc0.12.gb6a658bd00c9
Powered by blists - more mailing lists