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)
commit18ecd97506ab27d446ad5f7292b620fef3116089
tree3ff6b214435774e70de8fe600cad3fa367d33ebd
parentcefa1032f1114845de305f34dbe4c0c96ed6de1c
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