]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xprtrdma: Don't fall back to PHYSICAL memory registration
authorChuck Lever <chuck.lever@oracle.com>
Fri, 10 Jul 2015 20:09:40 +0000 (16:09 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 31 Aug 2015 20:45:58 +0000 (14:45 -0600)
commitc30b6ea638c4466f85049ea7d386c7acbccf4365
tree2bf279ce45fd1a0cb00786457ada74e773e0fb60
parent9b2556fa5364673ee5918cef63370b31b0fe957b
xprtrdma: Don't fall back to PHYSICAL memory registration

[ Queued for upstream v4.3 ]

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>
net/sunrpc/xprtrdma/verbs.c