mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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: Sagi Grimberg <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
parent
9ec1e1ce3a
commit
734ca5c467
1 changed files with 3 additions and 3 deletions
|
|
@ -2700,19 +2700,19 @@ static const struct sense_info sense_info_table[] = {
|
|||
.ascq = 0x00,
|
||||
},
|
||||
[TCM_LOGICAL_BLOCK_GUARD_CHECK_FAILED] = {
|
||||
.key = ILLEGAL_REQUEST,
|
||||
.key = ABORTED_COMMAND,
|
||||
.asc = 0x10,
|
||||
.ascq = 0x01, /* LOGICAL BLOCK GUARD CHECK FAILED */
|
||||
.add_sector_info = true,
|
||||
},
|
||||
[TCM_LOGICAL_BLOCK_APP_TAG_CHECK_FAILED] = {
|
||||
.key = ILLEGAL_REQUEST,
|
||||
.key = ABORTED_COMMAND,
|
||||
.asc = 0x10,
|
||||
.ascq = 0x02, /* LOGICAL BLOCK APPLICATION TAG CHECK FAILED */
|
||||
.add_sector_info = true,
|
||||
},
|
||||
[TCM_LOGICAL_BLOCK_REF_TAG_CHECK_FAILED] = {
|
||||
.key = ILLEGAL_REQUEST,
|
||||
.key = ABORTED_COMMAND,
|
||||
.asc = 0x10,
|
||||
.ascq = 0x03, /* LOGICAL BLOCK REFERENCE TAG CHECK FAILED */
|
||||
.add_sector_info = true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue