diff options
author | Fenghua Yu <[email protected]> | 2016-12-01 12:55:14 -0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2016-12-02 01:13:02 +0100 |
commit | 74fcdae1a7fdf30de5413ccc1eca271415d01124 (patch) | |
tree | a742dd6c925c16c6fda8d3c34393b4ec19db8db7 /fs/btrfs/tests/extent-buffer-tests.c | |
parent | 0efc89be9471b152599d2db7eb47de8e0d71c59f (diff) |
x86/intel_rdt: Call intel_rdt_sched_in() with preemption disabled
intel_rdt_sched_in() must be called with preemption disabled because the
function accesses percpu variables (pqr_state and closid).
If a task moves itself via move_myself() preemption is enabled, which
violates the calling convention and can result in incorrect closid
selection when the task gets preempted or migrated.
Add the required protection and a comment about the calling convention.
Signed-off-by: Fenghua Yu <[email protected]>
Cc: "Ravi V Shankar" <[email protected]>
Cc: "Tony Luck" <[email protected]>
Cc: "Marcelo Tosatti" <[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 'fs/btrfs/tests/extent-buffer-tests.c')
0 files changed, 0 insertions, 0 deletions