]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
fabrics: rework nvmf_discover()
authorHannes Reinecke <hare@suse.de>
Thu, 12 Aug 2021 06:28:12 +0000 (08:28 +0200)
committerKeith Busch <kbusch@kernel.org>
Thu, 12 Aug 2021 15:47:09 +0000 (09:47 -0600)
commite749eaf3b0a05e5c348a8383b96f1dafe2dac448
treefc213a9785108039c8b7c98ce70631c5e2bce2cf
parent4a003433d0372c36ee9b9446d8a7c79692c5f484
fabrics: rework nvmf_discover()

The logic to check for matching controller devices was backwards,
and resulted in stale discovery controllers upon failure.
So rework the logic to first scan the controller device (if present),
and then check if it matches the command line options.
And with that we can rework the entire logic to be easier to follow.

Signed-off-by: Hannes Reinecke <hare@suse.de>
fabrics.c