mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [folded] hpsa-fix-incorrect-scsi-status-reporting.patch removed from -mm tree
@ 2009-12-08 22:07 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2009-12-08 22:07 UTC (permalink / raw)
  To: scameron, James.Bottomley, achiang, jens.axboe, mikem, mm-commits


The patch titled
     hpsa: fix incorrect SCSI status reporting
has been removed from the -mm tree.  Its filename was
     hpsa-fix-incorrect-scsi-status-reporting.patch

This patch was dropped because it was folded into scsi-add-hpsa-driver-for-hp-smart-array-controllers.patch

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: hpsa: fix incorrect SCSI status reporting
From: Stephen M. Cameron <scameron@beardog.cce.hp.com>

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Cc: Mike Miller <mikem@beardog.cce.hp.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Alex Chiang <achiang@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/scsi/hpsa.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff -puN drivers/scsi/hpsa.c~hpsa-fix-incorrect-scsi-status-reporting drivers/scsi/hpsa.c
--- a/drivers/scsi/hpsa.c~hpsa-fix-incorrect-scsi-status-reporting
+++ a/drivers/scsi/hpsa.c
@@ -930,7 +930,7 @@ static void complete_scsi_command(struct
 
 	cmd->result = (DID_OK << 16); 		/* host byte */
 	cmd->result |= (COMMAND_COMPLETE << 8);	/* msg byte */
-	cmd->result |= (ei->ScsiStatus);
+	cmd->result |= (ei->ScsiStatus << 1);
 
 	/* copy the sense data whether we need to or not. */
 	memcpy(cmd->sense_buffer, ei->SenseInfo,
@@ -991,7 +991,6 @@ static void complete_scsi_command(struct
 
 
 			/* Must be some other type of check condition */
-			cmd->result |= (ei->ScsiStatus << 1);
 			dev_warn(&h->pdev->dev, "cp %p has check condition: "
 					"unknown type: "
 					"Sense: 0x%x, ASC: 0x%x, ASCQ: 0x%x, "
@@ -1013,8 +1012,6 @@ static void complete_scsi_command(struct
 		 * Pass it up to the upper layers...
 		 */
 		if (ei->ScsiStatus) {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-08 22:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-08 22:07 [folded] hpsa-fix-incorrect-scsi-status-reporting.patch removed from -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).