]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: Add a wrapper for getting the admin queue depth
authorMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Jun 2017 18:00:23 +0000 (14:00 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 18 Jun 2017 19:31:59 +0000 (12:31 -0700)
commit42bf65df5cb4261e9d9b9c76bf0cb239d41225b6
tree8501c03de95bfd2d1f36f912001aafbf245bb120
parente8d71e28686b7b8c5dfc0bf90ab59e459e91537d
nvme: Add a wrapper for getting the admin queue depth

The NVMe protocol provides no means for a device to report its maximum
queue depth. To facilitate being able to override the default on a
per-device basis, store the admin queue depth in struct nvme_dev and use
that value when allocating the queue.

Also provide an accessor function for use in place of the
NVME_AQ_BLKMQ_DEPTH macro that will return the right queue depth based
on the value stored in the nvme_dev struct.

Orabug: 26284591

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
drivers/nvme/host/pci.c