diff options
| author | Gabriele Monaco <[email protected]> | 2025-01-15 15:15:48 +0000 |
|---|---|---|
| committer | Steven Rostedt (Google) <[email protected]> | 2025-01-23 17:16:04 +0000 |
| commit | 8259cb14a70680553d5e82d65d1302fe589e9b39 (patch) | |
| tree | acfb5026f7da8b748e33ce3b4043536917671fd6 /lib/fault-inject.c | |
| parent | Linux 6.13 (diff) | |
| download | kernel-8259cb14a70680553d5e82d65d1302fe589e9b39.tar.gz kernel-8259cb14a70680553d5e82d65d1302fe589e9b39.zip | |
rv: Reset per-task monitors also for idle tasks
RV per-task monitors are implemented through a monitor structure
available for each task_struct. This structure is reset every time the
monitor is (re-)started, to avoid inconsistencies if the monitor was
activated previously.
To do so, we reset the monitor on all threads using the macro
for_each_process_thread. However, this macro excludes the idle tasks on
each CPU. Idle tasks could be considered tasks on their own right and it
should be up to the model whether to ignore them or not.
Reset monitors also on the idle tasks for each present CPU whenever we
reset all per-task monitors.
Cc: [email protected]
Cc: Juri Lelli <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: John Kacur <[email protected]>
Link: https://lore.kernel.org/[email protected]
Fixes: 792575348ff7 ("rv/include: Add deterministic automata monitor definition via C macros")
Signed-off-by: Gabriele Monaco <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions
