mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 04:26:41 +07:00
target: use correct sense code for LUN communication failure
The ASC/ASCQ code for 'Logical Unit Communication failure' is 0x08/0x00; 0x80/0x00 is vendor specific. Signed-off-by: Hannes Reinecke <hare@suse.de> Cc: Nicholas Bellinger <nab@risingtidesystems.com> Cc: stable@vger.kernel.org Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
parent
d1c3ed669a
commit
18a9df42d5
@ -2743,7 +2743,7 @@ transport_send_check_condition_and_sense(struct se_cmd *cmd,
|
|||||||
/* ILLEGAL REQUEST */
|
/* ILLEGAL REQUEST */
|
||||||
buffer[SPC_SENSE_KEY_OFFSET] = ILLEGAL_REQUEST;
|
buffer[SPC_SENSE_KEY_OFFSET] = ILLEGAL_REQUEST;
|
||||||
/* LOGICAL UNIT COMMUNICATION FAILURE */
|
/* LOGICAL UNIT COMMUNICATION FAILURE */
|
||||||
buffer[SPC_ASC_KEY_OFFSET] = 0x80;
|
buffer[SPC_ASC_KEY_OFFSET] = 0x08;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user