* [PATCH] SCSI: Add TASK_ABORTED to status_byte macro
@ 2005-03-09 17:26 Mike Anderson
0 siblings, 0 replies; only message in thread
From: Mike Anderson @ 2005-03-09 17:26 UTC (permalink / raw)
To: linux-scsi
Here is a refresh of an update to the status_byte macro.
Previous mail
http://marc.theaimsgroup.com/?l=linux-scsi&m=110322214824566&w=2
-andmike
--
Michael Anderson
andmike@us.ibm.com
Add TASK_ABORTED and ACA_ACTIVE to status_byte macro.
Signed-off-by: Mike Anderson <andmike@us.ibm.com>
---
linux-2.6.11-andmike/drivers/scsi/scsi_error.c | 2 ++
linux-2.6.11-andmike/include/scsi/scsi.h | 6 ++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff -puN drivers/scsi/scsi_error.c~tsk_abrt drivers/scsi/scsi_error.c
--- linux-2.6.11/drivers/scsi/scsi_error.c~tsk_abrt 2005-03-07 15:29:09.000000000 -0800
+++ linux-2.6.11-andmike/drivers/scsi/scsi_error.c 2005-03-07 15:29:09.000000000 -0800
@@ -1373,6 +1373,7 @@ int scsi_decide_disposition(struct scsi_
return ADD_TO_MLQUEUE;
case GOOD:
case COMMAND_TERMINATED:
+ case TASK_ABORTED:
return SUCCESS;
case CHECK_CONDITION:
rtn = scsi_check_sense(scmd);
@@ -1386,6 +1387,7 @@ int scsi_decide_disposition(struct scsi_
case CONDITION_GOOD:
case INTERMEDIATE_GOOD:
case INTERMEDIATE_C_GOOD:
+ case ACA_ACTIVE:
/*
* who knows? FIXME(eric)
*/
diff -puN include/scsi/scsi.h~tsk_abrt include/scsi/scsi.h
--- linux-2.6.11/include/scsi/scsi.h~tsk_abrt 2005-03-07 15:29:09.000000000 -0800
+++ linux-2.6.11-andmike/include/scsi/scsi.h 2005-03-07 15:29:09.000000000 -0800
@@ -169,8 +169,10 @@ static inline int scsi_status_is_good(in
#define RESERVATION_CONFLICT 0x0c
#define COMMAND_TERMINATED 0x11
#define QUEUE_FULL 0x14
+#define ACA_ACTIVE 0x18
+#define TASK_ABORTED 0x20
-#define STATUS_MASK 0x3e
+#define STATUS_MASK 0xfe
/*
* SENSE KEYS
@@ -348,7 +350,7 @@ struct scsi_lun {
* host_byte = set by low-level driver to indicate status.
* 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 host_byte(result) (((result) >> 16) & 0xff)
#define driver_byte(result) (((result) >> 24) & 0xff)
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-09 17:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-09 17:26 [PATCH] SCSI: Add TASK_ABORTED to status_byte macro Mike Anderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox