xprtrdma: Replace global lkey with lkey local to PD
authorChuck Lever <chuck.lever@oracle.com>
Thu, 24 Sep 2015 07:34:21 +0000 (10:34 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 25 Sep 2015 14:46:51 +0000 (10:46 -0400)
commitbb6c96d72879fe1f674a804eb95b891def4ace61
tree5377d9e4b36358f4ddb6e4f43909005c2a9a5b85
parent310b7cec8ea32dcd4e9978423717ce78dd89d45d
xprtrdma: Replace global lkey with lkey local to PD

The core API has changed so that devices that do not have a global
DMA lkey automatically create an mr, per-PD, and make that lkey
available. The global DMA lkey interface is going away in favor of
the per-PD DMA lkey.

The per-PD DMA lkey is always available. Convert xprtrdma to use the
device's per-PD DMA lkey for regbufs, no matter which memory
registration scheme is in use.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Cc: linux-nfs <linux-nfs@vger.kernel.org>
Acked-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
net/sunrpc/xprtrdma/fmr_ops.c
net/sunrpc/xprtrdma/frwr_ops.c
net/sunrpc/xprtrdma/physical_ops.c
net/sunrpc/xprtrdma/verbs.c
net/sunrpc/xprtrdma/xprt_rdma.h