OSDN Git Service

nvme-fc: add support for duplicate_connect option
authorJames Smart <jsmart2021@gmail.com>
Fri, 20 Oct 2017 23:17:08 +0000 (16:17 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 27 Oct 2017 06:25:32 +0000 (09:25 +0300)
commit56d5f4f108efd4e439d2320738e2b894af0920bb
treee2f22cb4bb954620608b1c4303e4ddea2ce16f2d
parent36e835f2432d8f16845307b5fb7e88d1e5af041d
nvme-fc: add support for duplicate_connect option

Adds support for the duplicate_connect option. When set to true,
checks whether there's an existing controller via the same host port
and target port for the same host (hostnqn, hostid) to the same
subsystem. Fails the connection request if an existing controller.

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/fc.c