target: use correct sense code for LUN communication failure
authorHannes Reinecke <hare@suse.de>
Mon, 17 Dec 2012 08:53:32 +0000 (09:53 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 8 Jan 2013 23:49:30 +0000 (15:49 -0800)
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>
drivers/target/target_core_transport.c

index c23c76ccef65aa1da973fd2869389a72774daacc..978762dc81bf2a8fa9d315ac21e37f4e0c5f9bad 100644 (file)
@@ -2743,7 +2743,7 @@ transport_send_check_condition_and_sense(struct se_cmd *cmd,
                /* ILLEGAL REQUEST */
                buffer[SPC_SENSE_KEY_OFFSET] = ILLEGAL_REQUEST;
                /* LOGICAL UNIT COMMUNICATION FAILURE */
-               buffer[SPC_ASC_KEY_OFFSET] = 0x80;
+               buffer[SPC_ASC_KEY_OFFSET] = 0x08;
                break;
        }
        /*