linux_dsm_epyc7002/drivers/nvme/host
Sagi Grimberg 038bd4cb67 nvme: add keep-alive support
Periodic keep-alive is a mandatory feature in NVMe over Fabrics, and
optional in NVMe 1.2.1 for PCIe.  This patch adds periodic keep-alive
sent from the host to verify that the controller is still responsive
and vice-versa.  The keep-alive timeout is user-defined (with
keep_alive_tmo connection parameter) and defaults to 5 seconds.

In order to avoid a race condition where the host sends a keep-alive
competing with the target side keep-alive timeout expiration, the host
adds a grace period of 10 seconds when publishing the keep-alive timeout
to the target.

In case a keep-alive failed (or timed out), a transport specific error
recovery kicks in.

For now only NVMe over Fabrics is wired up to support keep alive, but
we can add PCIe support easily once controllers actually supporting it
become available.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Steve Wise <swise@chelsio.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2016-07-05 11:28:20 -06:00
..
core.c nvme: add keep-alive support 2016-07-05 11:28:20 -06:00
fabrics.c nvme: add keep-alive support 2016-07-05 11:28:20 -06:00
fabrics.h nvme: add keep-alive support 2016-07-05 11:28:20 -06:00
Kconfig nvme-fabrics: add a generic NVMe over Fabrics library 2016-07-05 11:28:16 -06:00
lightnvm.c lightnvm: rename nr_pages to nr_ppas on nvm_rq 2016-05-06 12:51:10 -06:00
Makefile nvme-fabrics: add a generic NVMe over Fabrics library 2016-07-05 11:28:16 -06:00
nvme.h nvme: add keep-alive support 2016-07-05 11:28:20 -06:00
pci.c nvme.h: add NVMe over Fabrics definitions 2016-07-05 11:28:14 -06:00
scsi.c nvme: move chardev and sysfs interface to common code 2015-12-01 10:59:40 -07:00