[Devel] [PATCH VZ8 2/5] ve/proc: fix wrong output in do_task_stat()

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Tue Mar 10 13:31:47 MSK 2020


Remove printing task_cpu, this part was lost in rebase. Before patch
we've showed extra entry in position dependant output of /proc/pid/stat,
that made criu go mad.

https://jira.sw.ru/browse/PSBM-101289

Fixes: c1b073e09d58 ("ve/proc: Show vcpu in do_task_stat()")
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
 fs/proc/array.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/proc/array.c b/fs/proc/array.c
index eb6f7f451307..e85d0caa6efa 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -617,7 +617,6 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
 	seq_put_decimal_ull(m, " ", 0);
 	seq_put_decimal_ull(m, " ", 0);
 	seq_put_decimal_ll(m, " ", task->exit_signal);
-	seq_put_decimal_ll(m, " ", task_cpu(task));
 	seq_put_decimal_ll(m, " ", is_super ? task_cpu(task) : task_vcpu_id(task));
 	seq_put_decimal_ull(m, " ", task->rt_priority);
 	seq_put_decimal_ull(m, " ", task->policy);
-- 
2.24.1



More information about the Devel mailing list