]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: rpcrdma_bc_receive_call() should init rq_private_buf.len
authorChuck Lever <chuck.lever@oracle.com>
Mon, 15 Feb 2016 15:23:59 +0000 (10:23 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 17 Feb 2016 15:23:52 +0000 (10:23 -0500)
commitd8182d38252484ee7bde13de9fcc8eda3ad1639c
tree670160551d7f95c073da825b72d2f4073b09c7d3
parent8e319286741bc055c3721361d1d1120f5ff4e91f
xprtrdma: rpcrdma_bc_receive_call() should init rq_private_buf.len

Some NFSv4.1 OPEN requests were hanging waiting for the NFS server
to finish recalling delegations. Turns out that each NFSv4.1 CB
request on RDMA gets a GARBAGE_ARGS reply from the Linux client.

Commit 8a0b9f58b09447e7 added a line in bc_svc_process that
overwrites the incoming rq_rcv_buf's length with the value in
rq_private_buf.len. But rpcrdma_bc_receive_call() does not invoke
xprt_complete_bc_request(), thus rq_private_buf.len is not
initialized. svc_process_common() is invoked with a zero-length
RPC message, and fails.

Fixes: 8a0b9f58b09447e7 ('SUNRPC: Fix callback channel')
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/backchannel.c