]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
fabrics: lookup_discovery_ctrl() must look under host and not root
authorMartin Belanger <martin.belanger@dell.com>
Wed, 2 Aug 2023 13:38:56 +0000 (09:38 -0400)
committerDaniel Wagner <wagi@monom.org>
Thu, 7 Sep 2023 16:11:32 +0000 (18:11 +0200)
commit0ba431273e8a0adca558bccc63fd6e0ffd6b8bfe
tree2895f2329fd901b3a134a0d04b12e9e94068782d
parent9b7e7b0e0da4e6f265eb47a1fb4bc2cc0447b40f
fabrics: lookup_discovery_ctrl() must look under host and not root

lookup_discovery_ctrl() was scanning the whole root looking for any
matching discovery controller (DC). Instead, it must look under the
host object. The problem happens when there are more than one Host
NQN used to connect to the same DC. In this case, we will have more
than 1 host object and it is important to search for existing DCs
under the right host object.

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
fabrics.c