]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
[SCSI] libsas: cleanup spurious calls to scsi_schedule_eh
authorMaciej Trela <maciej.trela@intel.com>
Fri, 22 Jun 2012 06:25:37 +0000 (23:25 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 20 Jul 2012 07:58:47 +0000 (08:58 +0100)
eh is woken up automatically by the presence of failed commands,
scsi_schedule_eh is reserved for cases where there are no failed
commands.  This guarantees that host_eh_sceduled is only incremented
when an explicit eh request is made.

Reviewed-by: Jacek Danecki <jacek.danecki@intel.com>
Signed-off-by: Maciej Trela <maciej.trela@intel.com>
[fixed spurious delete of sas_ata_task_abort]
Signed-off-by: Artur Wojcik <artur.wojcik@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/libsas/sas_ata.c
drivers/scsi/libsas/sas_scsi_host.c

index b035acf1873098dd296ee5563f80de8d0d54845d..bec3bc8aab0cd2abe6b1c16286de204ce71b41bf 100644 (file)
@@ -618,7 +618,6 @@ void sas_ata_task_abort(struct sas_task *task)
                spin_lock_irqsave(q->queue_lock, flags);
                blk_abort_request(qc->scsicmd->request);
                spin_unlock_irqrestore(q->queue_lock, flags);
-               scsi_schedule_eh(qc->scsicmd->device->host);
                return;
        }
 
index a09da44e282b88cb50b85d96ede886c9675efb33..52d5b0133db0a0a38886c4d556ccf3a9532e4f9e 100644 (file)
@@ -1018,7 +1018,6 @@ void sas_task_abort(struct sas_task *task)
                spin_lock_irqsave(q->queue_lock, flags);
                blk_abort_request(sc->request);
                spin_unlock_irqrestore(q->queue_lock, flags);
-               scsi_schedule_eh(sc->device->host);
        }
 }