nvme-fc: add a dev_loss_tmo field to the remoteport
authorJames Smart <jsmart2021@gmail.com>
Wed, 25 Oct 2017 23:43:15 +0000 (16:43 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 Nov 2017 15:34:36 +0000 (16:34 +0100)
commitac7fe82b6fcf77e757e88005c33b8147c1b7b73f
tree8ccc6d6e46b7e3cda20f238ed0974a127a3258ed
parent44c6ec77e12c387aaba420b30a54b94966f0d9e8
nvme-fc: add a dev_loss_tmo field to the remoteport

Add a dev_loss_tmo value, paralleling the SCSI FC transport, for device
connectivity loss.

The transport initializes the value in the nvme_fc_register_remoteport()
call. If the value is not set, a default of 60s is set.

Add a new routine to the api, nvme_fc_set_remoteport_devloss() routine,
which allows the lldd to dynamically update the value on an existing
remoteport.

Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fc.c
include/linux/nvme-fc-driver.h