]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: allow duplicate controller if prior controller being deleted
authorJames Smart <jsmart2021@gmail.com>
Fri, 25 May 2018 21:02:23 +0000 (14:02 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 30 May 2018 06:03:23 +0000 (08:03 +0200)
commitf4b31ab49376b483790efb32079c9cb79ecbe030
tree83ed5fc851782bfd59ccdff8c310aaedb1a7f2ad
parent98f5d35c761ea71212a8d621efd533b579068317
nvme: allow duplicate controller if prior controller being deleted

The current checks for whether a new controller request "matches" an
existing controller ignores controller state and checks identity strings.
There are cases where an existing controller may be in its last steps of
deletion when they are "matched" by a new connection.

Change the behavior so that the new connection ignores controllers that
are deleted.

Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fabrics.h