From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D49A21B4244 for ; Sun, 25 Jan 2026 16:08:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769357295; cv=none; b=gS89Kfw0RYGlQ1LJWt+GZVaw1NXeSBTnZ8gxf8MFyQPHpINOriEEvUxjxpuullmbMG8sXeKdTLhzN4788HW3d1paWKKVfCk4u1qvR0Dp+G1wzmIw1aCqsG7g7yW/er9585HDfklEK+f0mRZ4mWEiSXRhRPB8URZ/OUREDcfbL9Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769357295; c=relaxed/simple; bh=K2R9b0barWC68k/7xbhNUGCfm1zFHkjY7UaNg/NdOEg=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=lS6Cv0m+QDFnRmyGHsbKJgFNp1K0/afLBkde1Uz/8bxLsFVDLrcw8EMbZQFxiN/yz+WKkuCqNlYqrDqtb01IlRWMUcUtTfbwwVFxna4G0oTrnzvo4KrEHtEAukCIEjlqrxX4qQxbgtRdMTMc0UQQ3/pm9ZcDKaWYqJwVBofKrso= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=D7Fgla07; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="D7Fgla07" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1769357292; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=vBKRDP8bqkordujGp7qy48QcPV4IJTrct7fsioyRbjk=; b=D7Fgla07Olwx7OgrDKxpmUMUsSAYlpvMJiB0SxRmfNg99AsWbv5FJ1Ao+gz4CFJsVQY3s3 TPkgRaoRUBv72pkr4/D6wjyj8aVhn5pbhIVC61E+OoA3kFSKD7MolKQWCtn4LeEMxdUkuB LeRfgHJwmGanMOhkInIS2NhVacMYkTQ= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-272-flqaROaMMQSqWeM4JnXa7g-1; Sun, 25 Jan 2026 11:08:09 -0500 X-MC-Unique: flqaROaMMQSqWeM4JnXa7g-1 X-Mimecast-MFC-AGG-ID: flqaROaMMQSqWeM4JnXa7g_1769357287 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 452B71956089; Sun, 25 Jan 2026 16:08:07 +0000 (UTC) Received: from fedora (unknown [10.45.224.8]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id 89E9F180049F; Sun, 25 Jan 2026 16:08:01 +0000 (UTC) Received: by fedora (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Sun, 25 Jan 2026 17:08:06 +0100 (CET) Date: Sun, 25 Jan 2026 17:08:00 +0100 From: Oleg Nesterov To: Andrew Morton Cc: Alice Ryhl , Boris Brezillon , Christian =?iso-8859-1?Q?K=F6nig?= , Felix Kuehling , Leon Romanovsky , Steven Price , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v2 7/7] netclassid: use thread_group_leader(p) in update_classid_task() Message-ID: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 Cleanup and preparation to simplify the next changes. Signed-off-by: Oleg Nesterov --- net/core/netclassid_cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/netclassid_cgroup.c b/net/core/netclassid_cgroup.c index dff66d8fb325..db9a5354f9de 100644 --- a/net/core/netclassid_cgroup.c +++ b/net/core/netclassid_cgroup.c @@ -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 { -- 2.52.0