We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6be2e11 commit d69697aCopy full SHA for d69697a
arch/x86/kernel/cpu/resctrl/rdtgroup.c
@@ -731,11 +731,15 @@ static ssize_t rdtgroup_tasks_write(struct kernfs_open_file *of,
731
static void show_rdt_tasks(struct rdtgroup *r, struct seq_file *s)
732
{
733
struct task_struct *p, *t;
734
+ pid_t pid;
735
736
rcu_read_lock();
737
for_each_process_thread(p, t) {
- if (is_closid_match(t, r) || is_rmid_match(t, r))
738
- seq_printf(s, "%d\n", t->pid);
+ if (is_closid_match(t, r) || is_rmid_match(t, r)) {
739
+ pid = task_pid_vnr(t);
740
+ if (pid)
741
+ seq_printf(s, "%d\n", pid);
742
+ }
743
}
744
rcu_read_unlock();
745
0 commit comments