-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pillar: Release CPUs on domain activation failure.
This commit addresses an issue where CPUs assigned to a domain within doActivate() are not released if the domain activation fails. The new logic ensures that CPUs are properly released and the CPU mask in the status is updated accordingly. This is achieved by introducing the releaseCPUs function and calling it in the appropriate error handling blocks within doActivate(). It is common for doActivate to fail in scenarios such as switching application profiles that share the same adapter. In such cases, the second application will fail to activate until the first one releases the necessary adapter. Signed-off-by: Nikolay Martyanov <nikolay@zededa.com>
- Loading branch information
1 parent
19a8690
commit 10c924e
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters