mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 02:44:41 +01: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:
parent
6fd390e2bc
commit
f3951e93d4
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue