Helper for ata_scsi_change_queue_depth
int __ata_change_queue_depth(struct ata_port * ap, struct scsi_device * sdev, int queue_depth, int reason);
ap
ATA port to which the device change the queue depth
sdev
SCSI device to configure queue depth for
queue_depth
new queue depth
reason
calling context
libsas and libata have different approaches for associating a sdev to its ata_port.
Jeff Garzik
Author.