xprtrdma: Put rpcrdma_reps before waking the tear-down completion
authorChuck Lever <chuck.lever@oracle.com>
Mon, 2 Aug 2021 18:44:24 +0000 (14:44 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 9 Aug 2021 20:42:02 +0000 (16:42 -0400)
commit97480cae13ca3a9c1de3eb6fd66cf9650a60db42
tree9c249938a7f4840b19a4bd17356d6d2bafebc0af
parent1143129e4d0d27740ce680d2fb0161ad4f27aa7e
xprtrdma: Put rpcrdma_reps before waking the tear-down completion

Ensure the tear-down completion is awoken only /after/ we've stopped
fiddling with rpcrdma_rep objects in rpcrdma_post_recvs().

Fixes: 15788d1d1077 ("xprtrdma: Do not refresh Receive Queue while it is draining")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/verbs.c