]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
netclassid: use thread_group_leader(p) in update_classid_task()
authorOleg Nesterov <oleg@redhat.com>
Sun, 25 Jan 2026 16:08:00 +0000 (17:08 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 3 Feb 2026 16:21:26 +0000 (08:21 -0800)
Cleanup and preparation to simplify planned future changes.

Link: https://lkml.kernel.org/r/aXY_4NSP094-Cf-2@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Alice Ryhl <aliceryhl@google.com>
Cc: Boris Brezillon <boris.brezillon@collabora.com>
Cc: Christan König <christian.koenig@amd.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Felix Kuehling <felix.kuehling@amd.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Leon Romanovsky <leon@kernel.org>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: Simon Horman <horms@kernel.org>
Cc: Steven Price <steven.price@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
net/core/netclassid_cgroup.c

index dff66d8fb325d28bb15f42641b9ec738b0022353..db9a5354f9de9ad61e016f2edbcc8737db535c25 100644 (file)
@@ -93,7 +93,7 @@ static void update_classid_task(struct task_struct *p, u32 classid)
        /* Only update the leader task, when many threads in this task,
         * so it can avoid the useless traversal.
         */
-       if (p != p->group_leader)
+       if (!thread_group_leader(p))
                return;
 
        do {