diff options
author | Sergey Samoylenko <s.samoylenko@yadro.com> | 2021-08-03 16:54:10 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-08-18 04:28:40 +0200 |
commit | 0394b5048efd73b04276979d014a67f30c0ad699 (patch) | |
tree | 270e52ff85cf4c3b46115305f1765669b79d7f81 /samples/kfifo | |
parent | scsi: target: Allows backend drivers to fail with specific sense codes (diff) | |
download | linux-0394b5048efd73b04276979d014a67f30c0ad699.tar.xz linux-0394b5048efd73b04276979d014a67f30c0ad699.zip |
scsi: target: Fix sense key for invalid EXTENDED COPY request
TCM fails to pass the following tests in libiscsi:
SCSI.ExtendedCopy.DescrType
SCSI.ExtendedCopy.DescrLimits
SCSI.ExtendedCopy.ParamHdr
SCSI.ExtendedCopy.ValidSegDescr
SCSI.ExtendedCopy.ValidTgtDescr
The xcopy code always returns the same NOT READY sense key for all detected
errors. Change the sense key for invalid requests to ILLEGAL REQUEST, and
for aborted transfers to COPY ABORTED.
Link: https://lore.kernel.org/r/20210803145410.80147-3-s.samoylenko@yadro.com
Fixes: d877d7275be3 ("target: Fix a deadlock between the XCOPY code and iSCSI session shutdown")
Reviewed-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com>
Reviewed-by: Konstantin Shelekhin <k.shelekhin@yadro.com>
Signed-off-by: Sergey Samoylenko <s.samoylenko@yadro.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'samples/kfifo')
0 files changed, 0 insertions, 0 deletions