OSDN Git Service

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)
commit27453b45e62da8656739f7e1365ea9318e7b040e
treec325f118ce826f62ab557a98c818ce7e008a9c65
parent2a14c9ae15a38148484a128b84bff7e9ffd90d68
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