Skip to content

Commit 86fbcd3

Browse files
author
Peter Zijlstra
committed
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) <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
1 parent a7c8155 commit 86fbcd3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎fs/proc/array.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,9 +382,9 @@ static inline void task_context_switch_counts(struct seq_file *m,
382382
static void task_cpus_allowed(struct seq_file *m, struct task_struct *task)
383383
{
384384
seq_printf(m, "Cpus_allowed:\t%*pb\n",
385-
cpumask_pr_args(task->cpus_ptr));
385+
cpumask_pr_args(&task->cpus_mask));
386386
seq_printf(m, "Cpus_allowed_list:\t%*pbl\n",
387-
cpumask_pr_args(task->cpus_ptr));
387+
cpumask_pr_args(&task->cpus_mask));
388388
}
389389

390390
static inline void task_core_dumping(struct seq_file *m, struct mm_struct *mm)

0 commit comments

Comments
 (0)