From: Tejun Heo Date: Fri, 10 Feb 2006 06:10:48 +0000 (+0900) Subject: [PATCH] libata: implement ata_scsi_timed_out() X-Git-Tag: v2.6.17-rc1~1182^2~88 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f29841e08fa20a7f2c8bc1b70306975299c66ee7;p=pandora-kernel.git [PATCH] libata: implement ata_scsi_timed_out() Implement ata_scsi_timed_out(), to be used as scsi_host_template->eh_timed_out callback for all libata drivers. Without this function, the following race exists. If a qc completes after SCSI timer expires but before libata EH kicks in, the qc gets completed but the scsicmd still gets passed to libata EH resulting in ->eng_timeout invocation with NULL qc, which none is handling properly. This patch makes sure that scmd and qc share the same lifetime. Original idea from Jeff Garzik . Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed