]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: "Unoptimize" rpcrdma_prepare_hdr_sge()
authorChuck Lever <chuck.lever@oracle.com>
Fri, 20 Oct 2017 14:48:03 +0000 (10:48 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 17 Nov 2017 18:47:56 +0000 (13:47 -0500)
commiteffed146abeb76bc41250972f3f74daa84861896
treeefb5b6a91d7a1b06154d85db7643861ff8735159
parentf76935598fb87832283df93684066dbedc4d3818
xprtrdma: "Unoptimize" rpcrdma_prepare_hdr_sge()

Commit fe143e73b176 ("xprtrdma: Use gathered Send for large inline
messages") assumed that, since the zeroeth element of the Send SGE
array always pointed to req->rl_rdmabuf, it needed to be initialized
just once. This was a valid assumption because the Send SGE array
and rl_rdmabuf both live in the same rpcrdma_req.

In a subsequent patch, the Send SGE array will be separated from the
rpcrdma_req, so the zeroeth element of the SGE array needs to be
initialized every time.

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