commit | 7f9ad9b8b96855f529f4fe9db0bf32cd3f14c01b | [log] [tgz] |
---|---|---|
author | Tejun Heo <htejun@gmail.com> | Sat Dec 15 15:05:00 2007 +0900 |
committer | Jeff Garzik <jeff@garzik.org> | Mon Dec 17 20:33:12 2007 -0500 |
tree | 955a9d2d53d7956319442e0321e37119a962ee9e | |
parent | ce2e0abbd31b047ac7be740d28ef710f5bbdb105 [diff] |
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>