diff options
author | Tejun Heo <htejun@gmail.com> | 2007-02-20 09:31:22 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-21 04:58:19 -0500 |
commit | c3c70c443c2ef1fce31f201a93780c884b903993 (patch) | |
tree | cfb23ec2831ad4f10c87f6362573db9eb6a33cbd /include/linux/sysfs.h | |
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>
Diffstat (limited to 'include/linux/sysfs.h')
0 files changed, 0 insertions, 0 deletions