[PATCH] libata: implement qc->result_tf
authorTejun Heo <htejun@gmail.com>
Mon, 15 May 2006 11:57:40 +0000 (20:57 +0900)
committerTejun Heo <htejun@gmail.com>
Mon, 15 May 2006 11:57:40 +0000 (20:57 +0900)
commite61e067227bc76b4d9411a50d735c9d87f27b0e2
tree007d22539b24aa6ae8e258af6e22a4187490a4c1
parent96bd39ec295e49443c8b0c25a6b69fdace18780f
[PATCH] libata: implement qc->result_tf

Add qc->result_tf and ATA_QCFLAG_RESULT_TF.  This moves the
responsibility of loading result TF from post-compltion path to qc
execution path.  qc->result_tf is loaded if explicitly requested or
the qc failsa.  This allows more efficient completion implementation
and correct handling of result TF for controllers which don't have
global TF representation such as sil3124/32.

Signed-off-by: Tejun Heo <htejun@gmail.com>
drivers/scsi/libata-core.c
drivers/scsi/libata-scsi.c
include/linux/libata.h