diff options
| author | Reinette Chatre <reinette.chatre@intel.com> | 2026-06-30 21:27:06 -0700 |
|---|---|---|
| committer | Borislav Petkov (AMD) <bp@alien8.de> | 2026-07-25 13:50:02 -0700 |
| commit | 7a8c45106b68d76e3815fe45266b61821810e0bd (patch) | |
| tree | b45560adf13e618c683f1d9e47740b698f7f0a39 /tools/perf/scripts/python/stackcollapse.py | |
| parent | cc2ca4296f72519686a9f949e725275f497f90ae (diff) | |
fs/resctrl: Use accurate and symmetric exit flows
During schemata file write handling there is one error exit path labeled
"out" that handles all cleanup and unlocking needed on exit. The staged
configs cleared during an error exit may not have been used at the time
of exit making the clearing of the staged configs unnecessary.
Access the exit code using two labels and only clear the staged
configuration if it was in use at the time of exit. Doing so makes the
code flow obvious and simplifies upcoming changes that improve the
handling of failures during early input parsing.
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Tested-by: Babu Moger <babu.moger@amd.com>
Link: https://patch.msgid.link/4cdd79d612dc6d62ccd490e1c31298025d66d385.1782857711.git.reinette.chatre@intel.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
