public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Mike Anderson <andmike@us.ibm.com>
To: linux-scsi@vger.kernel.org
Subject: [PATCH] SCSI: Add TASK_ABORTED to status_byte macro
Date: Wed, 9 Mar 2005 09:26:34 -0800	[thread overview]
Message-ID: <20050309172633.GA7151@us.ibm.com> (raw)

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)
_


                 reply	other threads:[~2005-03-09 17:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050309172633.GA7151@us.ibm.com \
    --to=andmike@us.ibm.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox