]> asedeno.scripts.mit.edu Git - linux.git/commit
xprtrdma: Eliminate unnecessary lock cycle in xprt_rdma_send_request
authorChuck Lever <chuck.lever@oracle.com>
Fri, 15 Dec 2017 01:56:18 +0000 (20:56 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 16 Jan 2018 16:19:42 +0000 (11:19 -0500)
commit42b9f5c58aa8c59c91ead0254f0c193e3438b020
tree09913cced38a56763951c91023d94d5e381c4154
parentd698c4a02ee02053bbebe051322ff427a2dad56a
xprtrdma: Eliminate unnecessary lock cycle in xprt_rdma_send_request

The rpcrdma_req is not shared yet, and its associated Send hasn't
been posted, thus RMW should be safe. There's no need for the
expense of a lock cycle here.

Fixes: 0ba6f37012db ("xprtrdma: Refactor rpcrdma_deferred_completion")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/transport.c