Commit 1781481
Trond Myklebust
SUNRPC: Fix call completion races with call_decode()
We need to make sure that the req->rq_private_buf is completely up to
date before we make req->rq_reply_bytes_recvd visible to the
call_decode() routine in order to avoid triggering the WARN_ON().
Reported-by: Benjamin Coddington <bcodding@redhat.com>
Fixes: 72691a2 ("SUNRPC: Don't reuse bvec on retransmission of the request")
Tested-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>1 parent ed06fce commit 1781481
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1179 | 1179 | | |
1180 | 1180 | | |
1181 | 1181 | | |
1182 | | - | |
| 1182 | + | |
1183 | 1183 | | |
1184 | | - | |
1185 | | - | |
1186 | | - | |
1187 | 1184 | | |
1188 | 1185 | | |
1189 | 1186 | | |
| |||
1221 | 1218 | | |
1222 | 1219 | | |
1223 | 1220 | | |
| 1221 | + | |
| 1222 | + | |
1224 | 1223 | | |
1225 | 1224 | | |
1226 | 1225 | | |
| |||
1453 | 1452 | | |
1454 | 1453 | | |
1455 | 1454 | | |
| 1455 | + | |
1456 | 1456 | | |
1457 | 1457 | | |
1458 | 1458 | | |
| |||
0 commit comments