]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: xprt_rdma_free() must not release backchannel reqs
authorChuck Lever <chuck.lever@oracle.com>
Wed, 16 Dec 2015 22:22:14 +0000 (17:22 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 18 Dec 2015 20:34:33 +0000 (15:34 -0500)
commitf3d8d604b8256d7d7381bb6f990311a7fc0e9cce
treed10df0074087ca02a690b263f7c0d3e25b536918
parentd8c75a1b02b270a01e15747c6607ef1cda262e38
xprtrdma: xprt_rdma_free() must not release backchannel reqs

Preserve any rpcrdma_req that is attached to rpc_rqst's allocated
for the backchannel. Otherwise, after all the pre-allocated
backchannel req's are consumed, incoming backward calls start
writing on freed memory.

Somehow this hunk got lost.

Fixes: 9ab9a12b0956 ('xprtrdma: Pre-allocate backward rpc_rqst')
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: Devesh Sharma <devesh.sharma@avagotech.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/transport.c