Commit 9e0e8da
nvme-fc: fail new connections to a deleted host or remote port
The lldd may have made calls to delete a remote port or local port and
the delete is in progress when the cli then attempts to create a new
controller. Currently, this proceeds without error although it can't be
very successful.
Fix this by validating that both the host port and remote port are
present when a new controller is to be created.
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>1 parent 50b7c24 commit 9e0e8da
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3671 | 3671 | | |
3672 | 3672 | | |
3673 | 3673 | | |
3674 | | - | |
| 3674 | + | |
| 3675 | + | |
3675 | 3676 | | |
3676 | 3677 | | |
3677 | 3678 | | |
3678 | 3679 | | |
3679 | | - | |
| 3680 | + | |
| 3681 | + | |
3680 | 3682 | | |
3681 | 3683 | | |
3682 | 3684 | | |
| |||
0 commit comments