]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: buf_free not called for CB replies
authorChuck Lever <chuck.lever@oracle.com>
Fri, 15 Dec 2017 01:57:23 +0000 (20:57 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 16 Jan 2018 16:19:47 +0000 (11:19 -0500)
commit762cfffae3b71db1b2dec1ba5ee652cc31eb19e9
tree8a123bdb1647e6de71f11d49e2a070ad3c91f43f
parent065f25d2f087a134ea20c4b87d44bb918e8d1322
xprtrdma: buf_free not called for CB replies

Since commit 61d0e6d4ce9e ("SUNRPC: Add a transport-specific private
field in rpc_rqst"), the rpc_rqst's for RPC-over-RDMA backchannel
operations leave rq_buffer set to NULL.

xprt_release does not invoke ->op->buf_free when rq_buffer is NULL.
The RPCRDMA_REQ_F_BACKCHANNEL check in xprt_rdma_free is therefore
redundant because xprt_rdma_free is not invoked for backchannel
requests.

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