Skip to content

Commit ba80c3a

Browse files
axboehtejun
authored andcommitted
sata_nv: set host can_queue count appropriately
libata limits the max limit for drivers to 31 anyway. We'll soon allow drivers to actually go to QD=32, but that might require some driver modifications. Before we do that, ensure that sata_nv limits the depth to 31. Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent 9d207ac commit ba80c3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ata/sata_nv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ static struct scsi_host_template nv_adma_sht = {
400400

401401
static struct scsi_host_template nv_swncq_sht = {
402402
ATA_NCQ_SHT(DRV_NAME),
403-
.can_queue = ATA_MAX_QUEUE,
403+
.can_queue = ATA_MAX_QUEUE - 1,
404404
.sg_tablesize = LIBATA_MAX_PRD,
405405
.dma_boundary = ATA_DMA_BOUNDARY,
406406
.slave_configure = nv_swncq_slave_config,

0 commit comments

Comments
 (0)