Skip to content

Conversation

@tiagolobocastro
Copy link
Member

refactor(nvmf/hosts): reuse existing connected_hosts

Rather than re-loop the hosts, simply reuse the connected hosts,
and disconnect any which is not on the new allowed list.

fix(nvmf/hosts): handle existing allowed host einval

On the latest spdk, we cannot add the same host back as it's now rejecting
it with einval.
Instead, we check the existing hosts and add only the new ones.

On the latest spdk, we cannot add the same host back as it's now rejecting
it with einval.
Instead, we check the existing hosts and add only the new ones.

Signed-off-by: Tiago Castro <[email protected]>
Rather than re-loop the hosts, simply reuse the connected hosts,
and disconnect any which is not on the new allowed list.

Signed-off-by: Tiago Castro <[email protected]>
@tiagolobocastro
Copy link
Member Author

bors merge

@bors-openebs-mayastor
Copy link

Build succeeded:

@bors-openebs-mayastor bors-openebs-mayastor bot merged commit b28c92e into develop Dec 4, 2025
5 checks passed
@bors-openebs-mayastor bors-openebs-mayastor bot deleted the allowed-hosts branch December 4, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants