Skip to content

RFC Support discovery log change events

James Smart linux-nvme 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest0 of 6 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 6 patches the cover letter announces are in this archive.

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH nvme-cli rfc 0/6] Support discovery log change events
Quoted 21 lines · Sagi Grimberg
Quoted 7 lines
Quoted 6 lines

Now, I'm suggesting to support discovery change log events by allowing the user to setup a persistent discovery controller and have the kernel fire to userspace discovery change log events over that controller.

Any comments/feedback/alternatives on _this_?

Quoted 13 lines

I think it's fine, and we should be able to merge possibly what the AEN event looks like and the FC event.? The Events are pretty much the same between FC and the AEN -> go perform a connect-all against the indicated discovery controller.?? What is different is how do you identify the discovery controller, and if you are re-using an an existing controller, how would that connect-all occur if it doesn't create a new discovery controller instance.? For how to identify the discovery controller, it could be: a) by full discovery-log-based-address fields? (not all must be present; e.g. FC);? b) by /dev/nvme? name of the persistent discovery controller (e.g. the AEN); or c) a derivation of the /dev/nvme? name (aka (b)) by using (a) to see if a persistent controller exists at that location. Am I getting a little off base ?

Quoted 7 lines

Not at all,

Given that FC does not need a persistent discovery controller to get the event, its fine that it will create a temporary discovery controller. Given that FC and IP do different things, we can separate them. But what I wanted to understand, is if I export a second subsystem on the same FC port, will it generate an FC event?

Well - FC does have an RSCN notification to cause the rescan of the FC port, if the FC port as the NVME Discovery attribute, but Christoph rejected the 3 patches about a year ago. I'll be reposting it. So the answer should eventually be - yes, it will get an FC event if the subsystem list at the FC port changes.

Quoted 7 lines

The only thing we need to make sure works is when FC also has a persistent discovery controller and it will see both FC events and nvme discovery log change events (not sure its a valid use-case at all though). I don't see how that could break because if I understand correctly it will see two events and worst case will fail to connect duplicate controller quietly which is fine I guess...

it shouldn't hurt/matter.? it can be a valid use case. FC already has the issue that link bounces and manual actions can create the same discovery controller being talked to simultaneously. We allow duplicate discovery controllers to the same <host,host_port,tgt_port,subsystem> - actually I think that "is this a discovery controller" check is in common code around the duplicates code. ?? But duplicate storage controllers to that tuple are by default not allowed, but can be over-ridden. ?? Regardless of it being ok, it should be clean. ? A "-d <devicename>" option (different connect-all tuple argument from the event) would make that pretty clean.

-- james