diff options
author | Sergey Samoylenko <[email protected]> | 2021-08-03 17:54:10 +0300 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2021-08-17 22:28:40 -0400 |
commit | 0394b5048efd73b04276979d014a67f30c0ad699 (patch) | |
tree | 270e52ff85cf4c3b46115305f1765669b79d7f81 /net/lapb/lapb_out.c | |
parent | 44678553ad7eb59be3092d6677d8d4a00289afda (diff) |
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/[email protected]
Fixes: d877d7275be3 ("target: Fix a deadlock between the XCOPY code and iSCSI session shutdown")
Reviewed-by: David Disseldorp <[email protected]>
Reviewed-by: Roman Bolshakov <[email protected]>
Reviewed-by: Konstantin Shelekhin <[email protected]>
Signed-off-by: Sergey Samoylenko <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions