mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-30 08:24:07 -04:00
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>
This commit is contained in:
committed by
Andrew Morton
parent
6fd390e2bc
commit
f3951e93d4
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user