Skip to content

nvmet/nvmet_fc: add events for discovery controller rescan

James Smart linux-nvme 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5nvmet: call transport on subsystem add and deletedrivers/nvme/target/configfs.c drivers/nvme/target/core.c drivers/nvme/target/nvmet.h+14 -00 replies
2/5nvmet_fc: support transport subsystem eventsdrivers/nvme/target/fc.c include/linux/nvme-fc-driver.h+16 -00 replies
3/5lpfc: Add support to generate RSCN events for nportdrivers/scsi/lpfc/lpfc.h drivers/scsi/lpfc/lpfc_crtn.h drivers/scsi/lpfc/lpfc_els.c +3 more+162 -00 replies
4/5lpfc: Add NVME rescan support via RSCNsdrivers/scsi/lpfc/lpfc_crtn.h drivers/scsi/lpfc/lpfc_els.c drivers/scsi/lpfc/lpfc_nvme.c +1 more+66 -00 replies
5/5lpfc: Add sysfs interface to post NVME RSCNdrivers/scsi/lpfc/lpfc.h drivers/scsi/lpfc/lpfc_attr.c+63 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] nvmet/nvmet_fc: add events for discovery controller rescan

A transport may have a transport-specific mechanism that can signal when discovery controller content has changed and request a host to reconnect to the discovery controller.

FC is such a transport. RSCNs may be generated by the FC port with the discovery server, with the RSCNs then broadcast to the FC-NVME hosts. A host, upon receiving the RSCN, would validate connectivity then initiate a discovery controller rescan, allowing new subsystems to be connected to or updating subsystem connectivity tables.

These patches:
- Modify the nvmet core layer to call a transport callback on every subsystem add or remove from a transport port.
- Modify the nvmet-fc transport to support the callback, and add its own internal lldd api to generate RSCN's via the lldd.
- Modify the lpfc driver to send/receive RSCNs for FC-NVME: transmit the changed attribute RSCN on the target, receiving the RSCN on the initiator and invoking the nvmet-fc transport rescan api. Also adds manual sysfs mechanism to generate the RSCN on the target.

Dick Kennedy (1):
lpfc: Add sysfs interface to post NVME RSCN

James Smart (4):
nvmet: call transport on subsystem add and delete
nvmet_fc: support transport subsystem events
lpfc: Add support to generate RSCN events for nport
lpfc: Add NVME rescan support via RSCNs

 drivers/nvme/target/configfs.c   |   2 +
 drivers/nvme/target/core.c       |  10 ++++
 drivers/nvme/target/fc.c         |  10 ++++
 drivers/nvme/target/nvmet.h      |   2 +
 drivers/scsi/lpfc/lpfc.h         |   2 +
 drivers/scsi/lpfc/lpfc_attr.c    |  62 ++++++++++++++++++++
 drivers/scsi/lpfc/lpfc_crtn.h    |   4 ++
 drivers/scsi/lpfc/lpfc_els.c     | 118 +++++++++++++++++++++++++++++++++++++++
 drivers/scsi/lpfc/lpfc_hbadisc.c |  35 ++++++++++++
 drivers/scsi/lpfc/lpfc_hw.h      |   9 +++
 drivers/scsi/lpfc/lpfc_nvme.c    |  42 ++++++++++++++
 drivers/scsi/lpfc/lpfc_nvmet.c   |  18 ++++++
 drivers/scsi/lpfc/lpfc_sli.c     |   1 +
 include/linux/nvme-fc-driver.h   |   6 ++
 14 files changed, 321 insertions(+)
Signature · 1 line
2.13.1