]> git.baikalelectronics.ru Git - kernel.git/commit
libata: ata_dev_disable() should be called from EH context
authorTejun Heo <htejun@gmail.com>
Sat, 15 Dec 2007 06:05:00 +0000 (15:05 +0900)
committerJeff Garzik <jeff@garzik.org>
Tue, 18 Dec 2007 01:33:12 +0000 (20:33 -0500)
commit3f51f0bacb0db6708f62efb0052f46ab1f2e5dcc
tree955a9d2d53d7956319442e0321e37119a962ee9e
parent8406d6b066daac7b94c95876c310e1ded954941c
libata: ata_dev_disable() should be called from EH context

ata_port_detach() calls ata_dev_disable() with host lock held but
ata_dev_disable() should be called from EH context.  ata_port_detach()
steals EH context by setting ATA_PFLAG_UNLOADAING and flushing EH.
Drop locking around ata_dev_disable() and note that ata_port_detach()
owns EH context at that point.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c