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

Submitted by Pavel Tikhomirov on March 10, 2020, 10:31 a.m.

Details

Message ID 20200310103150.214003-3-ptikhomirov@virtuozzo.com
State New
Series "fixes to VZ8 required for criu"
Headers show

Commit Message

Pavel Tikhomirov March 10, 2020, 10:31 a.m.
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@virtuozzo.com>
---
 fs/proc/array.c | 1 -
 1 file changed, 1 deletion(-)

Patch hide | download patch | download mbox

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);