nvme-fabrics: check max outstanding commands
authorGuixin Liu <kanie@linux.alibaba.com>
Wed, 28 Feb 2024 02:37:59 +0000 (10:37 +0800)
committerKeith Busch <kbusch@kernel.org>
Sat, 2 Mar 2024 23:18:09 +0000 (15:18 -0800)
commit4999568184e5d68903e6d0e49609979cd6ef01d7
treef766280b4dd506606cc60a0b65eca8285eb78443
parentf096ba3286f5e773c496cf81667d01f2e8a2a37b
nvme-fabrics: check max outstanding commands

Maxcmd is mandatory for fabrics, check it early to identify the root
cause instead of waiting for it to propagate to "sqsize" and "allocing
queue".

By the way, change nvme_check_ctrl_fabric_info() to
nvmf_validate_identify_ctrl().

Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Guixin Liu <kanie@linux.alibaba.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c