Commit 3bdb1c26 authored by Mike Anderson's avatar Mike Anderson Committed by James Bottomley

[PATCH] SCSI: Add TASK_ABORTED to status_byte macro

Add TASK_ABORTED and ACA_ACTIVE to status_byte macro.
Signed-off-by: default avatarMike Anderson <andmike@us.ibm.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent bb0d28aa
...@@ -1373,6 +1373,7 @@ int scsi_decide_disposition(struct scsi_cmnd *scmd) ...@@ -1373,6 +1373,7 @@ int scsi_decide_disposition(struct scsi_cmnd *scmd)
return ADD_TO_MLQUEUE; return ADD_TO_MLQUEUE;
case GOOD: case GOOD:
case COMMAND_TERMINATED: case COMMAND_TERMINATED:
case TASK_ABORTED:
return SUCCESS; return SUCCESS;
case CHECK_CONDITION: case CHECK_CONDITION:
rtn = scsi_check_sense(scmd); rtn = scsi_check_sense(scmd);
...@@ -1386,6 +1387,7 @@ int scsi_decide_disposition(struct scsi_cmnd *scmd) ...@@ -1386,6 +1387,7 @@ int scsi_decide_disposition(struct scsi_cmnd *scmd)
case CONDITION_GOOD: case CONDITION_GOOD:
case INTERMEDIATE_GOOD: case INTERMEDIATE_GOOD:
case INTERMEDIATE_C_GOOD: case INTERMEDIATE_C_GOOD:
case ACA_ACTIVE:
/* /*
* who knows? FIXME(eric) * who knows? FIXME(eric)
*/ */
......
...@@ -169,8 +169,10 @@ static inline int scsi_status_is_good(int status) ...@@ -169,8 +169,10 @@ static inline int scsi_status_is_good(int status)
#define RESERVATION_CONFLICT 0x0c #define RESERVATION_CONFLICT 0x0c
#define COMMAND_TERMINATED 0x11 #define COMMAND_TERMINATED 0x11
#define QUEUE_FULL 0x14 #define QUEUE_FULL 0x14
#define ACA_ACTIVE 0x18
#define TASK_ABORTED 0x20
#define STATUS_MASK 0x3e #define STATUS_MASK 0xfe
/* /*
* SENSE KEYS * SENSE KEYS
...@@ -348,7 +350,7 @@ struct scsi_lun { ...@@ -348,7 +350,7 @@ struct scsi_lun {
* host_byte = set by low-level driver to indicate status. * host_byte = set by low-level driver to indicate status.
* driver_byte = set by mid-level. * driver_byte = set by mid-level.
*/ */
#define status_byte(result) (((result) >> 1) & 0x1f) #define status_byte(result) (((result) >> 1) & 0x7f)
#define msg_byte(result) (((result) >> 8) & 0xff) #define msg_byte(result) (((result) >> 8) & 0xff)
#define host_byte(result) (((result) >> 16) & 0xff) #define host_byte(result) (((result) >> 16) & 0xff)
#define driver_byte(result) (((result) >> 24) & 0xff) #define driver_byte(result) (((result) >> 24) & 0xff)
......
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