diff options
author | Anastasia Kovaleva <[email protected]> | 2020-12-03 11:20:34 +0300 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2021-01-26 23:12:18 -0500 |
commit | cc0b6ad72e18568dab245a0c5f8cc051b0936b33 (patch) | |
tree | fe8b43ebbd262ab89002bb51a0d03488ed0458c8 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | eb90e45542b583c3647e032fba9348a74adfcb59 (diff) |
scsi: target: core: Signal WRITE residuals
According to RFC 7143 11.4.5.2.:
If SPDTL > EDTL for a task, iSCSI Overflow MUST be signaled in the SCSI
Response PDU as specified in Section 11.4.5.1. The Residual Count MUST
be set to the numerical value of (SPDTL - EDTL).
If SPDTL < EDTL for a task, iSCSI Underflow MUST be signaled in the SCSI
Response PDU as specified in Section 11.4.5.1. The Residual Count MUST
be set to the numerical value of (EDTL - SPDTL).
libiscsi has residual write tests that check residual kind and residual
amount and all of them (Write10Residuals, Write12Residuals,
Write16Residuals) currently fail.
One of the reasons why they fail is because target completes write commands
with INVALID FIELD IN CDB before setting the Overflow/Underflow bit and
residual amount.
Set the Overflow/Underflow bit and the residual amount before failing a
write to comply with RFC 7143.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Anastasia Kovaleva <[email protected]>
Signed-off-by: Roman Bolshakov <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions