]> git.baikalelectronics.ru Git - kernel.git/commit
x86/intel_rdt: Reset per cpu closids on unmount
authorFenghua Yu <fenghua.yu@intel.com>
Sat, 12 Nov 2016 01:02:37 +0000 (17:02 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 15 Nov 2016 17:35:50 +0000 (18:35 +0100)
commit51b14f54aba181b5946c80cecf63b5038e1405e7
tree351a83bdd34dcf688a43ea205a65074b07240d13
parente88cfe4ab69a441cd262a2e20ac934190d3b1f11
x86/intel_rdt: Reset per cpu closids on unmount

All CPUs in a rdtgroup are given back to the default rdtgroup before the
rdtgroup is removed during umount. After umount, the default rdtgroup
contains all online CPUs, but the per cpu closids are not cleared. As a
result the stale closid value will be used immediately after the next
mount.

Move all cpus to the default group and update the percpu closid storage.

[ tglx: Massaged changelong ]

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Cc: "Ravi V Shankar" <ravi.v.shankar@intel.com>
Cc: "Tony Luck" <tony.luck@intel.com>
Cc: "Sai Prakhya" <sai.praneeth.prakhya@intel.com>
Cc: "Vikas Shivappa" <vikas.shivappa@linux.intel.com>
Cc: "Ingo Molnar" <mingo@elte.hu>
Cc: "H. Peter Anvin" <h.peter.anvin@intel.com>
Link: http://lkml.kernel.org/r/1478912558-55514-2-git-send-email-fenghua.yu@intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/intel_rdt_rdtgroup.c