]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit368fd79341101cb8e5fbb1c1a342072e20984a76
tree034b6b41675573b5458501a04a8c635229c33fcd
parentef421ae823738c211065b6ded9a8ab2236fd3927
[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