diff options
author | David Disseldorp <ddiss@suse.de> | 2020-11-01 00:32:11 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-11-04 22:02:43 -0500 |
commit | 749c226cf56ed47ae76c57b2f7f6b8f01b5797c4 (patch) | |
tree | 952b67b3e66841c2b2596c0b452ea782606d998a /kernel/trace/fgraph.c | |
parent | ab628b9fc8c231655e52ed2b4a50758a633a2c63 (diff) | |
download | linux-749c226cf56ed47ae76c57b2f7f6b8f01b5797c4.tar.gz linux-749c226cf56ed47ae76c57b2f7f6b8f01b5797c4.tar.bz2 linux-749c226cf56ed47ae76c57b2f7f6b8f01b5797c4.zip |
scsi: target: Return COMPARE AND WRITE miscompare offsets
SBC-4 r15 5.3 COMPARE AND WRITE command states:
if the compare operation does not indicate a match, then terminate the
command with CHECK CONDITION status with the sense key set to
MISCOMPARE and the additional sense code set to MISCOMPARE DURING
VERIFY OPERATION. In the sense data (see 4.18 and SPC-5) the offset
from the start of the Data-Out Buffer to the first byte of data that
was not equal shall be reported in the INFORMATION field.
This change implements the missing logic to report the miscompare offset in
the sense data INFORMATION field. As an optimization, byte-by-byte
miscompare offset calculation is only performed after memcmp() mismatch.
Link: https://lore.kernel.org/r/20201031233211.5207-5-ddiss@suse.de
Signed-off-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'kernel/trace/fgraph.c')
0 files changed, 0 insertions, 0 deletions