[SCSI] pm8001: Fix for sata io circular lock dependency.
authorjack wang <jack_wang@usish.com>
Mon, 7 Dec 2009 09:22:36 +0000 (17:22 +0800)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 10 Dec 2009 15:58:54 +0000 (09:58 -0600)
commit9e79e12554d651f586ff2364e69a8e9cd5e9dbcb
tree034b6b41675573b5458501a04a8c635229c33fcd
parentedd163687ea59f01d6b43c9e1fdaa0126fa30191
[SCSI] pm8001: Fix for sata io circular lock dependency.

This patch fix for sata IO circular lock dependency. When we call task_done
for SATA IO, we have got pm8001_ha->lock ,and in sas_ata_task_done, it will
get (dev->sata_dev.ap->lock. then cause circular lock dependency .So we
should drop pm8001_ha->lock when we call task_done for SATA task.

Signed-off-by: Jack Wang <jack_wang@usish.com>
Signed-off-by: Lindar Liu <lindar_liu@usish.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/pm8001/pm8001_hwi.c