isci: Errors in the submit path for SATA devices manage the ap lock.
commit50e7f9b5a9ae4a763b2c27500807cf237faca9b0
authorDan Williams <dan.j.williams@intel.com>
Thu, 10 Mar 2011 05:27:46 +0000 (9 21:27 -0800)
committerDan Williams <dan.j.williams@intel.com>
Sun, 3 Jul 2011 10:55:30 +0000 (3 03:55 -0700)
tree2275230176a12f2f0a5f7a395100b5a4f2c3e134
parent70957a94d70cb82459bd3aea171c54d0a5cd6dbb
isci: Errors in the submit path for SATA devices manage the ap lock.

Since libsas takes the domain device sata_dev.ap->lock before submitting
a task, error completions in the submit path for SATA devices must
unlock/relock when completing the sas_task back to libsas.

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