]> www.infradead.org Git - users/hch/nvme-cli.git/commit
nvmf: use discovery controller host identifiers for persistent controllers
authorSagi Grimberg <sagi@grimberg.me>
Tue, 24 Mar 2020 08:53:28 +0000 (01:53 -0700)
committerKeith Busch <kbusch@kernel.org>
Wed, 1 Apr 2020 19:40:50 +0000 (12:40 -0700)
commit4ec74f0a9985d7680618ab02e0541ca294704f1e
tree6da0192235d84cc657a84fb7ac5ebd1c3089604f
parent4527e14071180015b8292c39bb88fde8b8550637
nvmf: use discovery controller host identifiers for persistent controllers

It is possible that the user will create a persistent discovery controller
with a specific host identifiers (hostnqn and/or hostid). If we get a discovery
change log event on this discovery controller we need to use the same host
identifiers that otherwise we will may not see what the discovery change log
event intended us to see (as we connect with a different hostnqn for example).

Note that we take these identifiers only if they exist in sysfs which gives us
backward compatibility (as hostnqn and hostid are still new).

Reported-by: Yogev Cohen <yogev@lightbitslabs.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
fabrics.c