Skip to content

M #-: helper/pci: release NVIDIA devices before driverctl overrides (fixes infinite hang) - #251

Open
rpetrescu-one wants to merge 1 commit into
OpenNebula:masterfrom
rpetrescu-one:m-907
Open

M #-: helper/pci: release NVIDIA devices before driverctl overrides (fixes infinite hang)#251
rpetrescu-one wants to merge 1 commit into
OpenNebula:masterfrom
rpetrescu-one:m-907

Conversation

@rpetrescu-one

Copy link
Copy Markdown
Contributor

A Release NVIDIA devices task in helper/pci before Override drivers, scoped to devices currently bound to nvidia whose override is not already recorded: stop nvidia-persistenced; drop kernel-level persistence mode per device (nvidia-smi -pm 0; an undetermined mode is treated as busy, it holds the usage count with no fd to detect); then fail fast with EBUSY listing any remaining holder of the device's /dev/nvidia instead of hanging, restoring the daemon before failing. The per-device scope keeps partial passthrough workable while other GPUs keep serving. After the override, a desired-state task starts the daemon back (also self-healing a daemon orphaned by a previously aborted run). psmisc added to the role packages (fuser).

@rpetrescu-one
rpetrescu-one requested a review from tinova August 5, 2026 11:37

@sk4zuzu sk4zuzu left a comment

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.

LGTM

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