Skip to content

Commit f3951e9

Browse files
oleg-nesterovakpm00
authored andcommitted
netclassid: use thread_group_leader(p) in update_classid_task()
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>
1 parent 6fd390e commit f3951e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/core/netclassid_cgroup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static void update_classid_task(struct task_struct *p, u32 classid)
9393
/* Only update the leader task, when many threads in this task,
9494
* so it can avoid the useless traversal.
9595
*/
96-
if (p != p->group_leader)
96+
if (!thread_group_leader(p))
9797
return;
9898

9999
do {

0 commit comments

Comments
 (0)