Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sata_nv: allow changing queue depth

The sata_nv driver was missing the change_queue_depth hook in the SCSI host
template which the other NCQ-capable libata drivers had. This made it impossible
to change the queue depth by user request. Add this in.

Signed-off-by: Robert Hancock <hancockr@shaw.ca>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

authored by

Robert Hancock and committed by
Jeff Garzik
1e0b5ab8 90c93785

+2
+2
drivers/ata/sata_nv.c
··· 307 307 .name = DRV_NAME, 308 308 .ioctl = ata_scsi_ioctl, 309 309 .queuecommand = ata_scsi_queuecmd, 310 + .change_queue_depth = ata_scsi_change_queue_depth, 310 311 .can_queue = ATA_DEF_QUEUE, 311 312 .this_id = ATA_SHT_THIS_ID, 312 313 .sg_tablesize = LIBATA_MAX_PRD, ··· 326 325 .name = DRV_NAME, 327 326 .ioctl = ata_scsi_ioctl, 328 327 .queuecommand = ata_scsi_queuecmd, 328 + .change_queue_depth = ata_scsi_change_queue_depth, 329 329 .can_queue = NV_ADMA_MAX_CPBS, 330 330 .this_id = ATA_SHT_THIS_ID, 331 331 .sg_tablesize = NV_ADMA_SGTBL_TOTAL_LEN,