]> asedeno.scripts.mit.edu Git - linux.git/commit
xprtrdma: De-duplicate "allocate new, free old regbuf"
authorChuck Lever <chuck.lever@oracle.com>
Wed, 24 Apr 2019 13:39:27 +0000 (09:39 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 25 Apr 2019 19:02:32 +0000 (15:02 -0400)
commit0f665ceb71a20520bdce76fb63ad68c21841aa62
treecab2855a32d7526fafb478d42a527992b7d4daac
parentbb93a1ae2bf4f6eb3cedf05a2ea4a2e6a80712e6
xprtrdma: De-duplicate "allocate new, free old regbuf"

Clean up by providing an API to do this common task.

At this point, the difference between rpcrdma_get_sendbuf and
rpcrdma_get_recvbuf has become tiny. These can be collapsed into a
single helper.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/transport.c
net/sunrpc/xprtrdma/verbs.c
net/sunrpc/xprtrdma/xprt_rdma.h