[SCSI] isci: Allow SSP tasks into the task management path.
authorJeff Skirvin <jeffrey.d.skirvin@intel.com>
Thu, 6 Sep 2012 04:36:47 +0000 (21:36 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 24 Sep 2012 08:11:04 +0000 (12:11 +0400)
commit54b46677757ff8d6c282305fc7710f466b63d6dc
treef9d228e23ee1e5567746cce654a033bff27e7441
parent2c8bd81010ed9377e761893487803a9b7408014d
[SCSI] isci: Allow SSP tasks into the task management path.

This commit fixes a driver bug for SSP tasks that require task management
in the target after they complete in the SCU hardware.  The problem was
manifested in the function "isci_task_abort_task", which tests
to see if the sas_task.lldd_task is non-NULL before allowing task
management; this bug would always NULL lldd_task in the SCU I/O completion
path even if target management was required, which would prevent
task / target manangement from happening.

Note that in the case of SATA/STP targets, error recovery is provided by
the libata error handler which is why SATA/STP device recovery worked
correctly even though SSP handling did not.

Signed-off-by: Jeff Skirvin <jeffrey.d.skirvin@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/isci/host.c