]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-fc: fail new connections to a deleted host or remote port
authorJames Smart <james.smart@broadcom.com>
Thu, 17 Sep 2020 20:33:22 +0000 (13:33 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 22 Sep 2020 15:49:55 +0000 (17:49 +0200)
commit62419490060f4d5d7d922994006baf83d3292a0a
tree5ab3de4139045b52ac88d6faa904cdd3bc3af8da
parent68f89b2698007d15e39ec003dd10cbf8f3542b0b
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>
drivers/nvme/host/fc.c