diff options
| author | James Morse <[email protected]> | 2025-05-15 16:58:37 +0000 |
|---|---|---|
| committer | Borislav Petkov (AMD) <[email protected]> | 2025-05-15 19:02:21 +0000 |
| commit | 8eb7ad66badc71e0d8547cf6195a2a6190090152 (patch) | |
| tree | 760b4999b3227abc96056d9c0dbf01ff67d0008d /drivers/fpga/tests/fpga-mgr-test.c | |
| parent | x86/resctrl: Rename resctrl_sched_in() to begin with "resctrl_arch_" (diff) | |
| download | kernel-8eb7ad66badc71e0d8547cf6195a2a6190090152.tar.gz kernel-8eb7ad66badc71e0d8547cf6195a2a6190090152.zip | |
x86/resctrl: Check all domains are offline in resctrl_exit()
resctrl_exit() removes things like the resctrl mount point directory
and unregisters the filesystem prior to freeing data structures that
were allocated during resctrl_init().
This assumes that there are no online domains when resctrl_exit() is
called. If any domain were online, the limbo or overflow handler could
be scheduled to run.
Add a check for any online control or monitor domains, and document that
the architecture code is required to offline all monitor and control
domains before calling resctrl_exit().
Suggested-by: Reinette Chatre <[email protected]>
Signed-off-by: James Morse <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Reviewed-by: Reinette Chatre <[email protected]>
Reviewed-by: Fenghua Yu <[email protected]>
Tested-by: Fenghua Yu <[email protected]>
Tested-by: Babu Moger <[email protected]>
Tested-by: Shaopeng Tan <[email protected]>
Tested-by: Tony Luck <[email protected]>
Link: https://lore.kernel.org/[email protected]
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions
