]> git.baikalelectronics.ru Git - 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)
commitdaa4537648077565678b86ef1c7891c9c2cab817
tree92bdcc22e8420ae9e0f551bc9db728c97897c555
parentf3df4461ae57c4e1647f2b15473250375a9bb1e5
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