nvme: add duplicate_connect option
authorJames Smart <jsmart2021@gmail.com>
Fri, 20 Oct 2017 23:17:06 +0000 (16:17 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 27 Oct 2017 06:25:20 +0000 (09:25 +0300)
commit3b3387620780fc9699021c85bdce5cb45a763d41
tree6097e4e59de4bbec87c64fbed2ea4fb25ec73e0f
parent999ada28713d7bcf4a2c70cbab47b08cd95f2cf8
nvme: add duplicate_connect option

Add the "duplicate_connect" boolean option (presence means true).
Default is false.

When false, the transport should validate whether a new controller request
is targeted for the same host transport addressing and target transport
addressing as an existing controller. If so, the new controller request
should be rejected.

When true, the callee is explicitly requesting a duplicate controller
connection to be made and the new request should be attempted.

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