Skip to content

Make persistent discovery controller configurable for the subsystem#3536

Open
hreinecke wants to merge 1 commit into
linux-nvme:masterfrom
hreinecke:subsys-pdc
Open

Make persistent discovery controller configurable for the subsystem#3536
hreinecke wants to merge 1 commit into
linux-nvme:masterfrom
hreinecke:subsys-pdc

Conversation

@hreinecke

Copy link
Copy Markdown
Collaborator

Some subsystems / vendors might choose to enable or disable persistent discovery controllers for particular subsystems, independent on the global option to enable PDCs.
This patch adds a new subsystem configuration option 'persistent_discovery_controller', which controls whether a PDC should be created for this subsystem. The value defaults to the host PDC setting if not specified in the configuration file.

@hreinecke

Copy link
Copy Markdown
Collaborator Author

This is a somewhat competing implementation to #3472; I'm not trying to change the default, but rather control the creation of a PDC on a per-subsystem basis.

Some subsystems / vendors might choose to enable or disable persistent
discovery controllers for particular subsystems, independent on the
global option to enable PDCs.
This patch adds a new subsystem configuration option
'persistent_discovery_controller', which controls whether a PDC should
be created for this subsystem. The value defaults to the host PDC setting
if not specified in the configuration file.

Signed-off-by: Hannes Reinecke <hare@suse.de>
disconnect = true;
else
disconnect = false;
disconnect = libnvme_subsystem_get_pdc_enabled(s);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, this makes a lot of sense to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants