diff options
| author | Peter Zijlstra <[email protected]> | 2020-10-05 12:49:16 +0200 | 
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2020-11-10 18:39:01 +0100 | 
| commit | 86fbcd3b4ba2c3e19daf705bc13d90fb53aab648 (patch) | |
| tree | 38bb1150c17f3c7bc15f8a36fd15409eda114bf5 /fs/proc/array.c | |
| parent | a7c81556ec4d341dfdbf2cc478ead89d73e474a7 (diff) | |
sched/proc: Print accurate cpumask vs migrate_disable()
Ensure /proc/*/status doesn't print 'random' cpumasks due to
migrate_disable().
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Valentin Schneider <[email protected]>
Reviewed-by: Daniel Bristot de Oliveira <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'fs/proc/array.c')
| -rw-r--r-- | fs/proc/array.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/fs/proc/array.c b/fs/proc/array.c index 65ec2029fa80..7052441be967 100644 --- 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) |