Skip to content

hotplug: Fix state file deletion for PCI and USB detach handlers#82

Merged
brianmcgillion merged 1 commit intotiiuae:mainfrom
vunnyso:vs-fixDelete
Sep 30, 2025
Merged

hotplug: Fix state file deletion for PCI and USB detach handlers#82
brianmcgillion merged 1 commit intotiiuae:mainfrom
vunnyso:vs-fixDelete

Conversation

@vunnyso
Copy link
Copy Markdown
Collaborator

@vunnyso vunnyso commented Sep 29, 2025

Previously, the state file for detached devices was deleted at the start of the detach call, regardless of whether any devices were successfully detached. This could result in data loss if detachment failed.
Updated handlers to delete state file only on successful detach.

Fixes: https://jira.tii.ae/browse/SSRCSP-7307

Previously, the state file for detached devices was deleted
at the start of the detach call, regardless of whether
any devices were successfully detached. This could result
in data loss if detachment failed.
Updated handlers to delete state file only on successful detach.

Signed-off-by: Vunny Sodhi <vunny.sodhi@unikie.com>
@vunnyso vunnyso requested a review from mbssrc September 29, 2025 09:30
@vunnyso
Copy link
Copy Markdown
Collaborator Author

vunnyso commented Sep 30, 2025

Ready for merge.

@brianmcgillion brianmcgillion merged commit 0b4bab1 into tiiuae:main Sep 30, 2025
7 checks passed
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.

4 participants