[SCSI] mpt2sas: do not check serial_number in the abort handler
authorChristoph Hellwig <hch@infradead.org>
Mon, 4 Apr 2011 13:42:30 +0000 (09:42 -0400)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 1 May 2011 15:23:45 +0000 (10:23 -0500)
The SCSI midlayer stops all command processing when in error handling, which
means there is no chance for command reuse when the abort handler is called.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: "Moore, Eric" <Eric.Moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/mpt2sas/mpt2sas_scsih.c

index d2064a0533ae8d6f6bbb3ea00d48c438541faff4..33723ed488ebfa36762e57c4c6fd80b7c734d5b5 100644 (file)
@@ -2133,8 +2133,7 @@ mpt2sas_scsih_issue_tm(struct MPT2SAS_ADAPTER *ioc, u16 handle, uint channel,
        switch (type) {
        case MPI2_SCSITASKMGMT_TASKTYPE_ABORT_TASK:
                scmd_lookup = _scsih_scsi_lookup_get(ioc, smid_task);
-               if (scmd_lookup && (scmd_lookup->serial_number ==
-                   scmd->serial_number))
+               if (scmd_lookup)
                        rc = FAILED;
                else
                        rc = SUCCESS;
This page took 0.032392 seconds and 5 git commands to generate.