aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorShawn Wang <[email protected]>2023-05-15 14:04:48 +0800
committerBorislav Petkov (AMD) <[email protected]>2023-05-30 20:57:39 +0200
commit2997d94b5dd0e8b10076f5e0b6f18410c73e28bd (patch)
treed7f311f527204929951ffd279ca6f45910a6ad45 /lib/mpi/mpi-bit.c
parent7877cb91f1081754a1487c144d85dc0d2e2e7fc4 (diff)
x86/resctrl: Only show tasks' pid in current pid namespace
When writing a task id to the "tasks" file in an rdtgroup, rdtgroup_tasks_write() treats the pid as a number in the current pid namespace. But when reading the "tasks" file, rdtgroup_tasks_show() shows the list of global pids from the init namespace, which is confusing and incorrect. To be more robust, let the "tasks" file only show pids in the current pid namespace. Fixes: e02737d5b826 ("x86/intel_rdt: Add tasks files") Signed-off-by: Shawn Wang <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Acked-by: Reinette Chatre <[email protected]> Acked-by: Fenghua Yu <[email protected]> Tested-by: Reinette Chatre <[email protected]> Link: https://lore.kernel.org/all/[email protected]/
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions