]> www.infradead.org Git - users/hch/nvme-cli.git/commit
fabrics: fix infinite loop is discovery recursion contains a loop
authorSagi Grimberg <sagi@grimberg.me>
Fri, 14 Aug 2020 20:42:39 +0000 (13:42 -0700)
committerKeith Busch <kbusch@kernel.org>
Wed, 19 Aug 2020 16:54:35 +0000 (09:54 -0700)
commitb2509be709467febb44aa9cdf48390af4ca82325
tree12bcc80021e67d370452621daa15f5058f03769a
parent1ca2593ee13a052b038ee3d4a16af14ccb9e578b
fabrics: fix infinite loop is discovery recursion contains a loop

It's possible that different discovery controllers may refer to
each other. In this case, we will get into an infinite loop as
we don't track that we have already connected and seen this.

The kernel doesn't protect us from this for discovery controllers
because it always allows duplicate discovery controllers.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
fabrics.c