From: Tejun Heo Date: Mon, 15 May 2006 11:58:07 +0000 (+0900) Subject: [PATCH] libata-eh-fw: implement ata_port_schedule_eh() and ata_port_abort() X-Git-Tag: v2.6.18-rc1~1079^2~98^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b70fc039824bc7303e4007a5f758f832de56611;p=pandora-kernel.git [PATCH] libata-eh-fw: implement ata_port_schedule_eh() and ata_port_abort() ata_port_schedule_eh() directly schedules EH for @ap without associated qc. Once EH scheduled, no further qc is allowed and EH kicks in as soon as all currently active qc's are drained. ata_port_abort() schedules all currently active commands for EH by qc_completing them with ATA_QCFLAG_FAILED set. If ata_port_abort() doesn't find any qc to abort, it directly schedule EH using ata_port_schedule_eh(). These two functions provide ways to invoke EH for conditions which aren't directly related to any specfic qc. Signed-off-by: Tejun Heo --- Reading git-diff-tree failed