isci: Qualify when the host lock is managed for STP/SATA callbacks.
authorJeff Skirvin <jeffrey.d.skirvin@intel.com>
Thu, 31 Mar 2011 20:10:40 +0000 (13:10 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sun, 3 Jul 2011 11:00:36 +0000 (04:00 -0700)
commited8a72d108bd951909b28fa4a89aad6489f414e1
treed93a624b0677c756c77a2bf3846b69f6209221e8
parent26e953bc6ec11c9e81ad8e9a59b14cf260776007
isci: Qualify when the host lock is managed for STP/SATA callbacks.

In the case of internal discovery related STP/SATA I/O started
through sas_execute_task the host lock is not taken by libsas before
calling lldd_execute_task, so the lock should not be managed before
calling back to libsas through task->task_done or sas_task_abort.

Signed-off-by: Jeff Skirvin <jeffrey.d.skirvin@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/isci/request.c
drivers/scsi/isci/sata.c
drivers/scsi/isci/task.c
drivers/scsi/isci/task.h