RPC/RDMA: check selected memory registration mode at runtime.
authorTom Talpey <talpey@netapp.com>
Thu, 9 Oct 2008 19:00:09 +0000 (15:00 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 10 Oct 2008 19:09:26 +0000 (15:09 -0400)
commitbd7ed1d13304d914648dacec4dbb9145aaae614e
treea0eee0c8304ab4bab7baca4675ebf8fffef1e288
parentfe9053b30bb48b99f7b45541249f5cfe96bdf7f7
RPC/RDMA: check selected memory registration mode at runtime.

At transport creation, check for, and use, any local dma lkey.
Then, check that the selected memory registration mode is in fact
supported by the RDMA adapter selected for the mount. Fall back
to best alternative if not.

Signed-off-by: Tom Talpey <talpey@netapp.com>
Acked-by: Tom Tucker <tom@opengridcomputing.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/xprtrdma/verbs.c