]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Don't fall back to PHYSICAL memory registration
authorChuck Lever <chuck.lever@oracle.com>
Mon, 3 Aug 2015 17:03:09 +0000 (13:03 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 5 Aug 2015 20:21:26 +0000 (16:21 -0400)
commitaec372cb6b9fa126742bc39f6b82f731116f3a4a
treee27c5f78ba4dc4bb80e5486773605047720ea8e9
parent03fe436343136f9f898eb222f3b6de9b4472626d
xprtrdma: Don't fall back to PHYSICAL memory registration

PHYSICAL memory registration uses a single rkey for all of the
client's memory, thus is insecure. It is still useful in some cases
for testing.

Retain the ability to select PHYSICAL memory registration capability
via /proc/sys/sunrpc/rdma_memreg_strategy, but don't fall back to it
if the HCA does not support FRWR or FMR.

This means amso1100 no longer works out of the box with NFS/RDMA.
When using amso1100 HCAs, set the memreg_strategy sysctl to 6 before
performing NFS/RDMA mounts.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: Devesh Sharma <devesh.sharma@avagotech.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/verbs.c