diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2021-04-19 14:02:41 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-04-26 09:24:05 -0400 |
commit | 35d8b10a25884050bb3b0149b62c3818ec59f77c (patch) | |
tree | d5d3dd7bca87beb2f9a957c73d2a3bdc2696a1d1 /.cocciconfig | |
parent | 9e3ca33b62d4878f6ae39776abb6deebb37db597 (diff) |
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 '.cocciconfig')
0 files changed, 0 insertions, 0 deletions