diff options
| author | Bart Van Assche <[email protected]> | 2023-07-24 13:08:30 -0700 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2023-07-25 21:34:35 -0400 |
| commit | 89e637c19b2441aabc8dbf22a8745b932fd6996e (patch) | |
| tree | 2f219f6193ebea824c123c5863e9d2cb3e42b4e5 /tools/perf/scripts/python/netdev-times.py | |
| parent | 2903265e27bfc6dea915dd9e17a1b2587f621f73 (diff) | |
scsi: RDMA/srp: Fix residual handling
Although the code for residual handling in the SRP initiator follows the
SCSI documentation, that documentation has never been correct. Because
scsi_finish_command() starts from the data buffer length and subtracts the
residual, scsi_set_resid() must not be called if a residual overflow
occurs. Hence remove the scsi_set_resid() calls from the SRP initiator if a
residual overflow occurrs.
Cc: Leon Romanovsky <[email protected]>
Cc: Jason Gunthorpe <[email protected]>
Fixes: 9237f04e12cc ("scsi: core: Fix scsi_get/set_resid() interface")
Fixes: e714531a349f ("IB/srp: Fix residual handling")
Signed-off-by: Bart Van Assche <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Leon Romanovsky <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions