summaryrefslogtreecommitdiff
path: root/net/devres.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2021-04-19 21:02:41 +0300
committerTrond Myklebust <trond.myklebust@hammerspace.com>2021-04-26 16:24:05 +0300
commit35d8b10a25884050bb3b0149b62c3818ec59f77c (patch)
treed5d3dd7bca87beb2f9a957c73d2a3bdc2696a1d1 /net/devres.c
parent9e3ca33b62d4878f6ae39776abb6deebb37db597 (diff)
downloadlinux-35d8b10a25884050bb3b0149b62c3818ec59f77c.tar.xz
xprtrdma: Fix cwnd update ordering
After a reconnect, the reply handler is opening the cwnd (and thus enabling more RPC Calls to be sent) /before/ rpcrdma_post_recvs() can post enough Receive WRs to receive their replies. This causes an RNR and the new connection is lost immediately. The race is most clearly exposed when KASAN and disconnect injection are enabled. This slows down rpcrdma_rep_create() enough to allow the send side to post a bunch of RPC Calls before the Receive completion handler can invoke ib_post_recv(). Fixes: 2ae50ad68cd7 ("xprtrdma: Close window between waking RPC senders and posting Receives") Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'net/devres.c')
0 files changed, 0 insertions, 0 deletions