[PATCH] libata: make ata_qc_issue complete failed qcs
authorTejun Heo <htejun@gmail.com>
Fri, 31 Mar 2006 11:41:11 +0000 (20:41 +0900)
committerJeff Garzik <jeff@garzik.org>
Fri, 31 Mar 2006 15:14:42 +0000 (10:14 -0500)
commit8e0e694a3a48212bfe29a9ad3cd592bf68dfec81
tree82f2b114160c8f1a6537c471fea7b41e50a80814
parente4a70e76add280db6068426716a9b2a74099144f
[PATCH] libata: make ata_qc_issue complete failed qcs

There is no reason for the issuer to diddle with a failed qc as the
issuer has complete control over when a qc gets freed (usually in
->complete_fn).  Make ata_qc_issue() responsible for completing qcs
which failed to issue.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/scsi/libata-core.c
drivers/scsi/libata-scsi.c
drivers/scsi/libata.h