nvme: only set reserved_tags in nvme_alloc_io_tag_set for fabrics controllers
authorChristoph Hellwig <hch@lst.de>
Wed, 30 Nov 2022 16:27:07 +0000 (17:27 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 7 Dec 2022 14:02:24 +0000 (15:02 +0100)
commitb794d1c2ad6d7921f2867ce393815ad31b5b5a83
tree683538d9c3d8f18ed652b58225a78e9a9ee63db7
parentdb45e1a5ddccc034eb60d62fc5352022d7963ae2
nvme: only set reserved_tags in nvme_alloc_io_tag_set for fabrics controllers

The reserved_tags are only needed for fabrics controllers.  Right now only
fabrics drivers call this helper, so this is harmless, but we'll use it
in the PCIe driver soon.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
drivers/nvme/host/core.c