From: Tejun Heo Date: Tue, 20 Feb 2007 14:31:22 +0000 (+0900) Subject: libata: fix ata_scsi_change_queue_depth() X-Git-Tag: v2.6.21-rc2~25^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3c70c443c2ef1fce31f201a93780c884b903993;p=pandora-kernel.git libata: fix ata_scsi_change_queue_depth() Fix ata_scsi_change_queue_depth() such that... * NCQ on/off is exactly determined using the same logic as the issue path. * queue depth is adjusted to 1 if NCQ is not enabled. * -EINVAL is returned if requested action is ignored due to limitations. This fixes the bug which allows queue depth to be increased on blacklisted NCQ hosts/devices. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed