diff options
author | Babu Moger <[email protected]> | 2023-10-16 19:23:03 -0500 |
---|---|---|
committer | Borislav Petkov (AMD) <[email protected]> | 2023-10-17 12:49:02 +0200 |
commit | df5f3a1dd8a6d3ddb1f07a10817f735194717422 (patch) | |
tree | bc9d711ad48ad970d16cac817b33ff1438aac4d3 /tools/perf/scripts/python/sched-migration.py | |
parent | d41592435cde9a658a1bd3b3fdfeb8db7b330d78 (diff) |
x86/resctrl: Unwind properly from rdt_enable_ctx()
rdt_enable_ctx() enables the features provided during resctrl mount.
Additions to rdt_enable_ctx() are required to also modify error paths
of rdt_enable_ctx() callers to ensure correct unwinding if errors
are encountered after calling rdt_enable_ctx(). This is error prone.
Introduce rdt_disable_ctx() to refactor the error unwinding of
rdt_enable_ctx() to simplify future additions. This also simplifies
cleanup in rdt_kill_sb().
Suggested-by: Reinette Chatre <[email protected]>
Signed-off-by: Babu Moger <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Reviewed-by: Peter Newman <[email protected]>
Reviewed-by: Tan Shaopeng <[email protected]>
Reviewed-by: Fenghua Yu <[email protected]>
Reviewed-by: Reinette Chatre <[email protected]>
Reviewed-by: Ilpo Järvinen <[email protected]>
Tested-by: Peter Newman <[email protected]>
Tested-by: Tan Shaopeng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions