mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
This commit is contained in:
parent
9d207accca
commit
ba80c3a572
1 changed files with 1 additions and 1 deletions
|
|
@ -400,7 +400,7 @@ static struct scsi_host_template nv_adma_sht = {
|
|||
|
||||
static struct scsi_host_template nv_swncq_sht = {
|
||||
ATA_NCQ_SHT(DRV_NAME),
|
||||
.can_queue = ATA_MAX_QUEUE,
|
||||
.can_queue = ATA_MAX_QUEUE - 1,
|
||||
.sg_tablesize = LIBATA_MAX_PRD,
|
||||
.dma_boundary = ATA_DMA_BOUNDARY,
|
||||
.slave_configure = nv_swncq_slave_config,
|
||||
|
|
|
|||
Loading…
Reference in a new issue