]> www.infradead.org Git - users/sagi/libnvme.git/commit
fabrics: fix endless loop in connect-all for NVME_NQN_CURR
authorSagi Grimberg <sagi@grimberg.me>
Sun, 28 Nov 2021 13:03:03 +0000 (15:03 +0200)
committerHannes Reinecke <hare@suse.de>
Mon, 29 Nov 2021 06:46:45 +0000 (07:46 +0100)
commit02489f250655146e73cf7b54036bde53bcb5bb4b
tree312021524951bb08e171f7381a379ef9d17078e6
parent278aba093e64bb89d8e471ddf1d0c83b0ff5b2f5
fabrics: fix endless loop in connect-all for NVME_NQN_CURR

For a discovery log page entry that indicates the discovery controller
that returned it (i.e. itself), we need to set the controller as
discovered (because we got the discovery log page by connecting to it).

Without this connect-all goes in an endless loop keep connecting and
retrieving the log page from the same discovery subsystem port.

Fixes: 06a8f001d314 ("tree,fabrics: detect discovery loops")
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
src/nvme/fabrics.c