mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 10:48:02 +00:00
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:
parent
f6d434f110
commit
e140f85dc1
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue