]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: limit maximum queue depth to 4095
authorSagi Grimberg <sagi@grimberg.me>
Wed, 16 Jun 2021 21:19:34 +0000 (14:19 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 16 Aug 2021 12:42:22 +0000 (14:42 +0200)
commita6470afcbf8a03b9946ab875e6258817b10577d3
treec325f118ce826f62ab557a98c818ce7e008a9c65
parentdb9ceda05b182dae321fdfb8cd71d78bc745b633
nvme-pci: limit maximum queue depth to 4095

We are going to use the upper 4-bits of the command_id for a generation
counter, so enforce the new queue depth upper limit. As we enforce
both min and max queue depth, use param_set_uint_minmax istead of
open coding it.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c