]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
nvmet-fc: fix failing max io queue connections
authorJames Smart <jsmart2021@gmail.com>
Mon, 11 Sep 2017 23:16:53 +0000 (16:16 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Sep 2017 14:56:05 +0000 (08:56 -0600)
commitdeb61742e060d4447712598bc11bb50f8b2e51dd
tree92bdcc22e8420ae9e0f551bc9db728c97897c555
parentd9d34c0b2327e85da0ad1476575264fe957fc6ef
nvmet-fc: fix failing max io queue connections

fc transport is treating NVMET_NR_QUEUES as maximum queue count, e.g.
admin queue plus NVMET_NR_QUEUES-1 io queues.  But NVMET_NR_QUEUES is
the number of io queues, so maximum queue count is really
NVMET_NR_QUEUES+1.

Fix the handling in the target fc transport

Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/target/fc.c