]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: report the actual number of tagset maps
authorKeith Busch <kbusch@kernel.org>
Mon, 26 Sep 2022 21:01:07 +0000 (14:01 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 27 Sep 2022 07:22:07 +0000 (09:22 +0200)
commit7af8ba0a223689d1e007d7027d235f9f87ec9b05
tree563219959ca0f5f1d2ddad51b12f668ba3e84d9f
parent8676bae5d0cc4af458c13859088b9a1c1d61975a
nvme-pci: report the actual number of tagset maps

We've been reporting 2 maps regardless of whether the module parameter
asked for anything beyond the default queues. A consequence of this
means that blk-mq will reinitialize the all the hardware contexts and io
schedulers on every controller reset when the mapping is exactly the
same as before. This unnecessary overhead is adding several milliseconds
on a reset for environments that don't need it. Report the actual number
of mappings in use.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c