[Devel] [PATCH RH9 28/33] ve: Allow taskstats via netlink in netns

Andrey Zhadchenko andrey.zhadchenko at virtuozzo.com
Thu Sep 23 22:08:31 MSK 2021


From: Vladimir Davydov <vdavydov at parallels.com>

In fact this patch was in 084.9 already, but was committed in kernel-ve,
so this is a move from kernel-ve to kernel-patches.

From: Konstantin Khlebnikov <khlebnikov at openvz.org>
Date: Thu, 12 Sep 2013 15:25:31 +0400
Subject: [vzlin-dev] [PATCH rh6] ve: allow taskstats netlink in netns

This patch adds support for iotop inside containers.
Task-exit notification isn't pidns aware and isn't required by iotop.

https://bugzilla.openvz.org/show_bug.cgi?id=2549

Signed-off-by: Konstantin Khlebnikov <khlebnikov at openvz.org>
Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>

(cherry picked from vz8 commit 51d3f7b83f18a36bd6d9d7a3fcc82d5ca10814f2)
Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>
---
 kernel/taskstats.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/taskstats.c b/kernel/taskstats.c
index 2b4898b..4d6bcaa 100644
--- a/kernel/taskstats.c
+++ b/kernel/taskstats.c
@@ -664,6 +664,7 @@ void taskstats_exit(struct task_struct *tsk, int group_dead)
 	.module		= THIS_MODULE,
 	.ops		= taskstats_ops,
 	.n_ops		= ARRAY_SIZE(taskstats_ops),
+	.netnsok	= true,
 };
 
 /* Needed early in initialization */
-- 
1.8.3.1



More information about the Devel mailing list