nvmf: Rescan namespaces after reconnecting

While a host was disconnected from a remote controller, namespaces
might have been added, removed, or altered properties.  Rescan the
namespaces after reconnecting to detect any such changes.

Reviewed by:	imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D45461
This commit is contained in:
John Baldwin 2024-06-05 12:53:08 -07:00
parent f6d434f110
commit e140f85dc1

View file

@ -685,6 +685,8 @@ nvmf_reconnect_host(struct nvmf_softc *sc, struct nvmf_handoff_host *hh)
nvmf_reconnect_ns(sc->ns[i]);
}
nvmf_reconnect_sim(sc);
nvmf_rescan_all_ns(sc);
out:
sx_xunlock(&sc->connection_lock);
nvmf_free_ivars(&ivars);