Commit 734ca5c4 authored by Sagi Grimberg's avatar Sagi Grimberg Committed by Nicholas Bellinger

target: Return ABORTED_COMMAND sense key for PI errors

PI errors were reported with ILLEGAL_REQUEST sense key but
there was actually no problem with the request. Target
detected PI errors should be reported with aborted command
sense key.
Signed-off-by: default avatarSagi Grimberg <sagig@mellanox.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Reviewed-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 9ec1e1ce
...@@ -2700,19 +2700,19 @@ static const struct sense_info sense_info_table[] = { ...@@ -2700,19 +2700,19 @@ static const struct sense_info sense_info_table[] = {
.ascq = 0x00, .ascq = 0x00,
}, },
[TCM_LOGICAL_BLOCK_GUARD_CHECK_FAILED] = { [TCM_LOGICAL_BLOCK_GUARD_CHECK_FAILED] = {
.key = ILLEGAL_REQUEST, .key = ABORTED_COMMAND,
.asc = 0x10, .asc = 0x10,
.ascq = 0x01, /* LOGICAL BLOCK GUARD CHECK FAILED */ .ascq = 0x01, /* LOGICAL BLOCK GUARD CHECK FAILED */
.add_sector_info = true, .add_sector_info = true,
}, },
[TCM_LOGICAL_BLOCK_APP_TAG_CHECK_FAILED] = { [TCM_LOGICAL_BLOCK_APP_TAG_CHECK_FAILED] = {
.key = ILLEGAL_REQUEST, .key = ABORTED_COMMAND,
.asc = 0x10, .asc = 0x10,
.ascq = 0x02, /* LOGICAL BLOCK APPLICATION TAG CHECK FAILED */ .ascq = 0x02, /* LOGICAL BLOCK APPLICATION TAG CHECK FAILED */
.add_sector_info = true, .add_sector_info = true,
}, },
[TCM_LOGICAL_BLOCK_REF_TAG_CHECK_FAILED] = { [TCM_LOGICAL_BLOCK_REF_TAG_CHECK_FAILED] = {
.key = ILLEGAL_REQUEST, .key = ABORTED_COMMAND,
.asc = 0x10, .asc = 0x10,
.ascq = 0x03, /* LOGICAL BLOCK REFERENCE TAG CHECK FAILED */ .ascq = 0x03, /* LOGICAL BLOCK REFERENCE TAG CHECK FAILED */
.add_sector_info = true, .add_sector_info = true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment