]> git.baikalelectronics.ru Git - kernel.git/commit
sunrpc: turn swapper_enable/disable functions into rpc_xprt_ops
authorJeff Layton <jlayton@poochiereds.net>
Wed, 3 Jun 2015 20:14:29 +0000 (16:14 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 10 Jun 2015 22:26:26 +0000 (18:26 -0400)
commita67288ca11930e0fc5a53f198f5ec4f44b988445
treea594a793ca2c827f383965e25d0a5d2d2a790287
parentd9b846de4fe4cb02b50e399c6cd1d39e7c860743
sunrpc: turn swapper_enable/disable functions into rpc_xprt_ops

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