From: Darrick J. Wong Date: Tue, 30 Jan 2007 09:18:41 +0000 (-0800) Subject: [SCSI] sas_ata: ata_post_internal should abort the sas_task X-Git-Tag: v2.6.23-rc1~7^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c50dc83f9ca752b1e1b985f1ce33d2695103ffa;p=pandora-kernel.git [SCSI] sas_ata: ata_post_internal should abort the sas_task This patch adds a new field, lldd_task, to ata_queued_cmd so that libata users such as libsas can associate some data with a qc. The particular ambition with this patch is to associate a sas_task with a qc; that way, if libata decides to timeout a command, we can come back (in sas_ata_post_internal) and abort the sas task. One question remains: Is it necessary to reset the phy on error, or will the libata error handler take care of it? (Assuming that one is written, of course.) This patch, as it is today, works well enough to clean things up when an ATA device probe attempt fails halfway through the probe, though I'm not sure this is always the right thing to do. Signed-off-by: Darrick J. Wong Signed-off-by: James Bottomley --- Reading git-diff-tree failed