]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-fabrics: remove unnecessary controller subnqn validation
authorJames Smart <jsmart2021@gmail.com>
Sat, 12 May 2018 00:50:22 +0000 (17:50 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 May 2018 14:50:15 +0000 (16:50 +0200)
commit9ad7bb7485be607b77e5a73c80ea31f410776716
tree2bb46f2d808eeeb9165ffaddeb80da36920ff352
parenta6f18094ada87a093a40fe49ac8a9e488d769197
nvme-fabrics: remove unnecessary controller subnqn validation

After creating the nvme controller, nvmf_create_ctrl() validates
the newly created subsysnqn vs the one specified by the options.

In general, this is an unnecessary check as the Connect message
should implicitly ensure this value matches.

With the change to the FC transport to do an asynchronous connect
for the first association create, the transport will return to
nvmf_create_ctrl() before that first association has been established,
thus the subnqn will not yet be set.

Remove the unnecessary validation.

Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fabrics.c