diff options
author | Robert Hancock <hancockr@shaw.ca> | 2007-06-28 20:52:24 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-02 10:14:02 -0400 |
commit | 1e0b5ab81e2abb8bbf7446f4a17f43a1e34944fe (patch) | |
tree | 217db9ae3e5ebe0364e1c59fdb43db7add8d275f /drivers/ata/sata_nv.c | |
parent | 90c937853d792ea997d7fdec72dbbea4f92e12c4 (diff) |
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>
Diffstat (limited to 'drivers/ata/sata_nv.c')
-rw-r--r-- | drivers/ata/sata_nv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ata/sata_nv.c b/drivers/ata/sata_nv.c index adfa693db53d..d53cb8c47f39 100644 --- a/drivers/ata/sata_nv.c +++ b/drivers/ata/sata_nv.c | |||
@@ -307,6 +307,7 @@ static struct scsi_host_template nv_sht = { | |||
307 | .name = DRV_NAME, | 307 | .name = DRV_NAME, |
308 | .ioctl = ata_scsi_ioctl, | 308 | .ioctl = ata_scsi_ioctl, |
309 | .queuecommand = ata_scsi_queuecmd, | 309 | .queuecommand = ata_scsi_queuecmd, |
310 | .change_queue_depth = ata_scsi_change_queue_depth, | ||
310 | .can_queue = ATA_DEF_QUEUE, | 311 | .can_queue = ATA_DEF_QUEUE, |
311 | .this_id = ATA_SHT_THIS_ID, | 312 | .this_id = ATA_SHT_THIS_ID, |
312 | .sg_tablesize = LIBATA_MAX_PRD, | 313 | .sg_tablesize = LIBATA_MAX_PRD, |
@@ -325,6 +326,7 @@ static struct scsi_host_template nv_adma_sht = { | |||
325 | .name = DRV_NAME, | 326 | .name = DRV_NAME, |
326 | .ioctl = ata_scsi_ioctl, | 327 | .ioctl = ata_scsi_ioctl, |
327 | .queuecommand = ata_scsi_queuecmd, | 328 | .queuecommand = ata_scsi_queuecmd, |
329 | .change_queue_depth = ata_scsi_change_queue_depth, | ||
328 | .can_queue = NV_ADMA_MAX_CPBS, | 330 | .can_queue = NV_ADMA_MAX_CPBS, |
329 | .this_id = ATA_SHT_THIS_ID, | 331 | .this_id = ATA_SHT_THIS_ID, |
330 | .sg_tablesize = NV_ADMA_SGTBL_TOTAL_LEN, | 332 | .sg_tablesize = NV_ADMA_SGTBL_TOTAL_LEN, |