]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
fabrics: only look for matching ctrl on same host
authorCaleb Sander <csander@purestorage.com>
Wed, 28 Jun 2023 20:35:24 +0000 (14:35 -0600)
committerDaniel Wagner <wagi@monom.org>
Tue, 18 Jul 2023 07:00:47 +0000 (09:00 +0200)
commit9cf31d24f8b3911b870cb217c6715637459a376a
treee76c61baab882c238d397ff78b23888896cc5270
parent5780a5225c7126a1b12ed5fe56daccbbc35b8a1e
fabrics: only look for matching ctrl on same host

With the lookup_ctrl() check to prevent duplicate connections,
identical connections from different hosts are no longer possible.
Fix lookup_ctrl() to only look for matching controllers
on the same host that is being connected.
This restores the ability for multiple hosts on the same machine
to connect to the same transport addresses on the same subsystem.

Fixes: 07d6b91 ("fabrics: Do not attempt to reconnect to already
connected ctrls")
Signed-off-by: Caleb Sander <csander@purestorage.com>
fabrics.c
fabrics.h
nbft.c