commit | c3c70c443c2ef1fce31f201a93780c884b903993 | [log] [tgz] |
---|---|---|
author | Tejun Heo <htejun@gmail.com> | Tue Feb 20 23:31:22 2007 +0900 |
committer | Jeff Garzik <jeff@garzik.org> | Wed Feb 21 04:58:19 2007 -0500 |
tree | cfb23ec2831ad4f10c87f6362573db9eb6a33cbd | |
parent | fcf1bf1584647f9fd864c193fee81840c4c5ce41 [diff] |
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 <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>