Commit b28c92e
Merge #1933
1933: fix(nvmf/hosts): handle existing allowed host einval r=tiagolobocastro a=tiagolobocastro
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.
Co-authored-by: Tiago Castro <[email protected]>1 file changed
+11
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
602 | | - | |
603 | 602 | | |
604 | | - | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
605 | 608 | | |
606 | | - | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
607 | 612 | | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
| 613 | + | |
623 | 614 | | |
624 | 615 | | |
625 | | - | |
| 616 | + | |
626 | 617 | | |
627 | 618 | | |
628 | 619 | | |
629 | 620 | | |
630 | 621 | | |
631 | 622 | | |
632 | | - | |
| 623 | + | |
633 | 624 | | |
634 | 625 | | |
635 | 626 | | |
| |||
0 commit comments