]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sunrpc: turn swapper_enable/disable functions into rpc_xprt_ops
authorJeff Layton <jlayton@poochiereds.net>
Tue, 25 Aug 2015 18:29:31 +0000 (12:29 -0600)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 31 Aug 2015 20:45:55 +0000 (14:45 -0600)
commit16dd25d9c51a7105f97dc805ef6aa0b233b57a0a
tree233ccfc796b16e340c376fe43676b665a55df282
parent215461bb7b7551d8db9a9f466e362bc18f052964
sunrpc: turn swapper_enable/disable functions into rpc_xprt_ops

[ Upstream commit d67fa4d85a2143b46052b2e9ccc6749a4c97b2de ]

RDMA xprts don't have a sock_xprt, but an rdma_xprt, so the
xs_swapper_enable/disable functions will likely oops when fed an RDMA
xprt. Turn these functions into rpc_xprt_ops so that that doesn't
occur. For now the RDMA versions are no-ops that just return -EINVAL
on an attempt to swapon.

Cc: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
include/linux/sunrpc/xprt.h
net/sunrpc/clnt.c
net/sunrpc/xprtrdma/transport.c
net/sunrpc/xprtsock.c