]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-fc: keep ctrl->sqsize in sync with opts->queue_size
authorChristoph Hellwig <hch@lst.de>
Tue, 20 Sep 2022 15:27:33 +0000 (17:27 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 27 Sep 2022 12:44:16 +0000 (14:44 +0200)
commit7f030ce71b61db67ed65a6bd7cb883e824380037
tree3ff6b214435774e70de8fe600cad3fa367d33ebd
parent014afc605eaeccf2e7fcaaba685b48b17e706ed4
nvme-fc: keep ctrl->sqsize in sync with opts->queue_size

Also update the sqsize field when capping the queue size, and remove the
check a queue size that is larger than sqsize given that sqsize is only
initialized from opts->queue_size.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: James Smart <jsmart2021@gmail.com>
drivers/nvme/host/fc.c