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)
commit42e5c3e2725ba0c0affc1fc8a6aa1d5cf31ecb75
treeb6394fe31cdf2560533abfa37c35cab3f08f406a
parenta5b027e1897c811401862877d0ba4ca26fabc4da
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
This page took 0.118786 seconds and 5 git commands to generate.