From: Tejun Heo Date: Sun, 23 Sep 2007 04:14:12 +0000 (+0900) Subject: libata-pmp-prep: implement qc_defer helpers X-Git-Tag: v2.6.24-rc1~1391^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da917d69d0ea63f5390716cba6e77f490ce96df9;p=pandora-kernel.git libata-pmp-prep: implement qc_defer helpers Implement ap->nr_active_links (the number of links with active qcs), ap->excl_link (pointer to link which can be used by ->qc_defer and is cleared when a qc with ATA_QCFLAG_CLEAR_EXCL completes), and ata_link_active(). These can be used by ->qc_defer() to implement proper command exclusion. This set of helpers seem enough for both sil24 (ATAPI exclusion needed) and cmd-switching PMP. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed