projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7c8155
)
sched/proc: Print accurate cpumask vs migrate_disable()
author
Peter Zijlstra
<peterz@infradead.org>
Mon, 5 Oct 2020 10:49:16 +0000
(12:49 +0200)
committer
Peter Zijlstra
<peterz@infradead.org>
Tue, 10 Nov 2020 17:39:01 +0000
(18:39 +0100)
Ensure /proc/*/status doesn't print 'random' cpumasks due to
migrate_disable().
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Reviewed-by: Daniel Bristot de Oliveira <bristot@redhat.com>
Link:
https://lkml.kernel.org/r/20201023102347.593984734@infradead.org
fs/proc/array.c
patch
|
blob
|
history
diff --git
a/fs/proc/array.c
b/fs/proc/array.c
index 65ec2029fa80202801ea10d561bdc2d00f4cd3c5..7052441be9679e69581c023868a385b4f679842e 100644
(file)
--- a/
fs/proc/array.c
+++ b/
fs/proc/array.c
@@
-382,9
+382,9
@@
static inline void task_context_switch_counts(struct seq_file *m,
static void task_cpus_allowed(struct seq_file *m, struct task_struct *task)
{
seq_printf(m, "Cpus_allowed:\t%*pb\n",
- cpumask_pr_args(
task->cpus_ptr
));
+ cpumask_pr_args(
&task->cpus_mask
));
seq_printf(m, "Cpus_allowed_list:\t%*pbl\n",
- cpumask_pr_args(
task->cpus_ptr
));
+ cpumask_pr_args(
&task->cpus_mask
));
}
static inline void task_core_dumping(struct seq_file *m, struct mm_struct *mm)