nvme_fc: add dev_loss_tmo support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | nvme core: allow controller RESETTING to RECONNECTING transitiondrivers/ | +1 | 0 replies | |
| 2/8 | nvme_fc: change ctlr state assignments during reset/reconnectdrivers/ | +8 | 0 replies | |
| 3/8 | nvme_fc: add a dev_loss_tmo field to the remoteportdrivers/ include/ | +21 | 0 replies | |
| 4/8 | nvme_fc: add dev_loss_tmo to controllerdrivers/ include/ | +95 | 0 replies | |
| 5/8 | nvme_fc: check connectivity before initiating reconnectsdrivers/ | +31 | 0 replies | |
| 6/8 | nvme_fc: change failure code on remoteport connectivity lossdrivers/ | +2 | 0 replies | |
| 7/8 | nvme_fc: move remote port get/put/free locationdrivers/ | +39 | 0 replies | |
| 8/8 | nvme_fc: add dev_loss_tmo timeout and remoteport resume supportdrivers/ | +215 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/8] nvme_fc: add dev_loss_tmo support
FC, on the SCSI side, has long had a device loss timeout which governed how long it would hide connectivity loss to remote targets. The timeout value is maintained in the SCSI FC transport and admins are used to going there to maintain it.
Eventually, the SCSI FC transport will be moved into something independent from and above SCSI so that SCSI and NVME protocols can be peers. That's fairly distant. In the meantime, to add the functionality now, and sync with the SCSI FC transport, the LLDD will be used as the conduit. The initial value for the timeout can be set by the LLDD when it creates the remoteport via nvme_fc_register_remoteport(). Later, if the value is updated via the SCSI transport, the LLDD can call a new nvme_fc routine to update the remoteport's dev_loss_tmo value, which can then be propagated to the controllers on the remoteport.
As the fabrics implementation already has a similar behavior introduced on rdma, the ctrl_loss_tmo, which may be set on a controller basis (finer granularity than the FC port used for the connection), the nvme_fc transport will mediate and choose the lesser of the controllers value and the remoteports value.
The patches were cut on nvme-4.12 after applying the patches in
http://lists.infradead.org/pipermail/linux-nvme/2017-May/010156.html
and
http://lists.infradead.org/pipermail/linux-nvme/2017-May/010166.html
James Smart (8):
nvme core: allow controller RESETTING to RECONNECTING transition
nvme_fc: change ctlr state assignments during reset/reconnect
nvme_fc: add a dev_loss_tmo field to the remoteport
nvme_fc: add dev_loss_tmo to controller
nvme_fc: check connectivity before initiating reconnects
nvme_fc: change failure code on remoteport connectivity loss
nvme_fc: move remote port get/put/free location
nvme_fc: add dev_loss_tmo timeout and remoteport resume support
drivers/nvme/host/core.c | 1 + drivers/nvme/host/fc.c | 465 +++++++++++++++++++++++++++++++++++------ include/linux/nvme-fc-driver.h | 11 +- 3 files changed, 411 insertions(+), 66 deletions(-)
Signature · 1 line
2.11.0