]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Abstract backchannel operations
authorChuck Lever <chuck.lever@oracle.com>
Sat, 24 Oct 2015 21:27:35 +0000 (17:27 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 2 Nov 2015 18:45:15 +0000 (13:45 -0500)
commit4d7361aa04b5c0bc75dc7cf3f25f87d5d6d86a97
treeb6394fe31cdf2560533abfa37c35cab3f08f406a
parentdf32f9d35f20b4c021b39e104b97a12b15e1ed24
SUNRPC: Abstract backchannel operations

xprt_{setup,destroy}_backchannel() won't be adequate for RPC/RMDA
bi-direction. In particular, receive buffers have to be pre-
registered and posted in order to receive incoming backchannel
requests.

Add a virtual function call to allow the insertion of appropriate
backchannel setup and destruction methods for each transport.

In addition, freeing a backchannel request is a little different
for RPC/RDMA. Introduce an rpc_xprt_op to handle the difference.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Tested-By: Devesh Sharma <devesh.sharma@avagotech.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/linux/sunrpc/bc_xprt.h
include/linux/sunrpc/xprt.h
net/sunrpc/backchannel_rqst.c
net/sunrpc/xprtsock.c