[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)
commit36fed4980529b3d4090fcb677ad46b27e270be40
tree494d88ad67ddd8b707568e5978ce45e64ca20fdf
parent57fc2e335fd3c2f898ee73570dc81426c28dc7b4
[SCSI] libsas: cleanup spurious calls to scsi_schedule_eh

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