summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_legacy.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2008-11-03 12:04:37 +0100
committerJeff Garzik <jgarzik@redhat.com>2008-12-29 04:43:21 +0100
commitece180d1cfe5fa751eaa85bf796cf28b2150af15 (patch)
treeaca9d485036858ed3f1859e679473cebd3476845 /drivers/ata/pata_legacy.c
parentlibata: when restoring SControl during detach do the PMP links first (diff)
downloadlinux-ece180d1cfe5fa751eaa85bf796cf28b2150af15.tar.xz
linux-ece180d1cfe5fa751eaa85bf796cf28b2150af15.zip
libata: perform port detach in EH
ata_port_detach() first made sure EH saw ATA_PFLAG_UNLOADING and then assumed EH context belongs to it and performed detach operation itself. However, UNLOADING doesn't disable all of EH and this could lead to problems including triggering WARN_ON()'s in EH path. This patch makes port detach behave more like other EH actions such that ata_port_detach() requests EH to detach and waits for completion. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/pata_legacy.c')
0 files changed, 0 insertions, 0 deletions