RFC add support to discovery async event notifications
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | nvme-fabrics: allow discovery subsystems accept a kato | +0 | 0 replies | |
| 2/3 | nvme: enable aen also for discovery controllers | +0 | 0 replies | |
| 3/3 | nvme: fire discovery log page change events to userspace | +0 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH rfc 0/3] add support to discovery async event notifications
Quoted 11 lines · Sagi Grimberg
In order to support discovery AENs we need to have two things:
1. Support long lived discovery controller sessions that would allow to receive discovery AENs. This means we need to specify kato in connect2. Support discovery log change events. The choice here is to simply fire a udev event and let userspace to:
1. issue an updated discovery log page via our discovery controller (1)
2. connect to every new subsystem/port that exists in the system.This patch set was developed against the nvmet support patch set from Jay.
Quoted 9 lines
nvme-cli patches are also included in this series.
the udev rule that ultimately achieves dynamic discovery enumeration (TP 8002) is:
SUBSYSTEM=="nvme", ACTION=="change", \ RUN+="/usr/sbin/nvme connect-all --device=nvme$env{NVME_INSTANCE} --transport=$env{NVME_TRTYPE} \ --traddr=$env{NVME_TRADDR} --trsvcid=$env{NVME_TRSVCID} & disown
Not sure that'll work; IIRC udev doesn't follow the bash syntax of '&' here. Have you checked?
Cheers,
Hannes
Signature · 5 lines
Dr. Hannes Reinecke Teamlead Storage & Networking hare at suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg GF: F. Imend?rffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG N?rnberg)