Commit 301cca2
xprtrdma: Fix handling of RDMA_ERROR replies
commit 7b2182e upstream.
The RPC client currently doesn't handle ERR_CHUNK replies correctly.
rpcrdma_complete_rqst() incorrectly passes a negative number to
xprt_complete_rqst() as the number of bytes copied. Instead, set
task->tk_status to the error value, and return zero bytes copied.
In these cases, return -EIO rather than -EREMOTEIO. The RPC client's
finite state machine doesn't know what to do with -EREMOTEIO.
Additional clean ups:
- Don't double-count RDMA_ERROR replies
- Remove a stale comment
Signed-off-by: Chuck Lever <[email protected]>
Cc: <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 9e2f256 commit 301cca2
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1349 | 1349 | | |
1350 | 1350 | | |
1351 | 1351 | | |
1352 | | - | |
1353 | | - | |
| 1352 | + | |
1354 | 1353 | | |
1355 | 1354 | | |
1356 | 1355 | | |
| |||
1387 | 1386 | | |
1388 | 1387 | | |
1389 | 1388 | | |
1390 | | - | |
1391 | | - | |
1392 | | - | |
1393 | | - | |
1394 | 1389 | | |
1395 | 1390 | | |
1396 | 1391 | | |
| 1392 | + | |
| 1393 | + | |
1397 | 1394 | | |
1398 | 1395 | | |
1399 | 1396 | | |
| |||
0 commit comments