From: Tejun Heo Date: Tue, 20 Feb 2007 14:27:06 +0000 (+0900) Subject: libata: fix ata_scmd_need_defer() X-Git-Tag: v2.6.21-rc2~25^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcf1bf1584647f9fd864c193fee81840c4c5ce41;p=pandora-kernel.git libata: fix ata_scmd_need_defer() Fix ata_scmd_need_defer() such that... * whether NCQ is used or not is exactly determined using the same criteria as the issue path. * defer-check is performed in all cases. This fixes race condition where turning off NCQ on the fly causes non-NCQ commands sneak into NCQ phase. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed