[Devel] [PATCH RHEL COMMIT] ve: Allow taskstats via netlink in netns

Konstantin Khorenko khorenko at virtuozzo.com
Fri Sep 24 15:48:50 MSK 2021


The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after ark-5.14
------>
commit 63544f35aac9b2329b531cd91fb9057b0b48510b
Author: Vladimir Davydov <vdavydov.dev at gmail.com>
Date:   Fri Sep 24 15:48:50 2021 +0300

    ve: Allow taskstats via netlink in netns
    
    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 2b4898b4752e..4d6bcaaf52a0 100644
--- a/kernel/taskstats.c
+++ b/kernel/taskstats.c
@@ -664,6 +664,7 @@ static struct genl_family family __ro_after_init = {
 	.module		= THIS_MODULE,
 	.ops		= taskstats_ops,
 	.n_ops		= ARRAY_SIZE(taskstats_ops),
+	.netnsok	= true,
 };
 
 /* Needed early in initialization */


More information about the Devel mailing list