diff options
author | Fenghua Yu <[email protected]> | 2016-11-18 15:18:04 -0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2016-11-28 11:07:50 +0100 |
commit | 0efc89be9471b152599d2db7eb47de8e0d71c59f (patch) | |
tree | e655063054738ce96614b8ae2154a1ddbb7be368 /scripts/gdb | |
parent | 2659f46da8307871989f475accdcdfc4807e9e6c (diff) |
x86/intel_rdt: Update task closid immediately on CPU in rmdir and unmount
When removing a sub directory/rdtgroup by rmdir or umount, closid in a
task in the sub directory is set to default rdtgroup's closid which is 0.
If the task is running on a CPU, the PQR_ASSOC MSR is only updated
when the task runs through a context switch. Up to the context switch,
the task runs with the wrong closid.
Make the change immediately effective by invoking a smp function call on
all CPUs which are running moved task. If one of the affected tasks was
moved or scheduled out before the function call is executed on the CPU the
only damage is the extra interruption of the CPU.
[ tglx: Reworked it to avoid blindly interrupting all CPUs and extra loops ]
Signed-off-by: Fenghua Yu <[email protected]>
Cc: "Ravi V Shankar" <[email protected]>
Cc: "Tony Luck" <[email protected]>
Cc: "Sai Prakhya" <[email protected]>
Cc: "Vikas Shivappa" <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions