From nobody Sat Feb 7 11:52:35 2026 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 B5F30325734 for ; Sun, 25 Jan 2026 16:07:58 +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=1769357280; cv=none; b=P1n2g1d7dk5Vg9pKfZGGtbbOYS1kk3bW39XqHL6FAjpm23Qe75ZV8xQke95aeq902Ex/aAso1BAA+v7AWfcXi5JW6005y58j34vchqpu6uI69dN1+CcUHaM7N6MYdcsrxV9ZgZjuqX0ywr/rzVyDWDlhU1worRimEJ7+ZjdXhYY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769357280; c=relaxed/simple; bh=swHaI3c2JoPO1HOTXeiCGWsEgjLI793SCNrpBEK/UgA=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=qXcO2yeSvLPs1RsH+xWDXWNpCgtG5XTC/sDFhVKUumQvQPWDxpQTrei5iFUm8iUKaWSLMNTea4uEdDBVKkiKS1nKW5q97O0dDiS48mkdG2xxbPtPPuP7BRihPL8PKIobCSwsWRUfdFY2ctrwZPu6G2BOUYXGe8YgVgSrvD8Zx1c= 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=O20MEYEg; 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="O20MEYEg" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1769357277; 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=pehOQwRLVUnKwmfNDz7t+7CRyqZIDgEsusANGj0Uc5c=; b=O20MEYEgMahTrwaHfmR0gBYcinT1d14yL2fU1RJjqUCvjOCsVWx13l1Cj2UwUzpfj9yUze HcMWK2QF58DGB/HE3J6Lq/eWaw8enF3ZiYwoFvC3cs2ro9VFu72AGrdExBadaSmk0oA+U9 sEAbGmRnBZutf+icAlXcrPJxKYWNELQ= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-626-EJ_A6oNuP3CBRjhniGKd5Q-1; Sun, 25 Jan 2026 11:07:53 -0500 X-MC-Unique: EJ_A6oNuP3CBRjhniGKd5Q-1 X-Mimecast-MFC-AGG-ID: EJ_A6oNuP3CBRjhniGKd5Q_1769357271 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id AFD5118003FC; Sun, 25 Jan 2026 16:07:51 +0000 (UTC) Received: from fedora (unknown [10.45.224.8]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id D1A1B1955F66; Sun, 25 Jan 2026 16:07:45 +0000 (UTC) Received: by fedora (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Sun, 25 Jan 2026 17:07:51 +0100 (CET) Date: Sun, 25 Jan 2026 17:07:44 +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 5/7] drm/pan*: don't abuse current->group_leader Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Cleanup and preparation to simplify the next changes. Use current->tgid instead of current->group_leader->pid. Signed-off-by: Oleg Nesterov Acked-by: Boris Brezillon Acked-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_gem.c | 2 +- drivers/gpu/drm/panthor/panthor_gem.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_gem.c b/drivers/gpu/drm/panf= rost/panfrost_gem.c index 8041b65c6609..1ff1f2c8b726 100644 --- a/drivers/gpu/drm/panfrost/panfrost_gem.c +++ b/drivers/gpu/drm/panfrost/panfrost_gem.c @@ -17,7 +17,7 @@ static void panfrost_gem_debugfs_bo_add(struct panfrost_device *pfdev, struct panfrost_gem_object *bo) { - bo->debugfs.creator.tgid =3D current->group_leader->pid; + bo->debugfs.creator.tgid =3D current->tgid; get_task_comm(bo->debugfs.creator.process_name, current->group_leader); =20 mutex_lock(&pfdev->debugfs.gems_lock); diff --git a/drivers/gpu/drm/panthor/panthor_gem.c b/drivers/gpu/drm/pantho= r/panthor_gem.c index fbde78db270a..29cc57efc4b9 100644 --- a/drivers/gpu/drm/panthor/panthor_gem.c +++ b/drivers/gpu/drm/panthor/panthor_gem.c @@ -27,7 +27,7 @@ static void panthor_gem_debugfs_bo_add(struct panthor_gem= _object *bo) struct panthor_device *ptdev =3D container_of(bo->base.base.dev, struct panthor_device, base); =20 - bo->debugfs.creator.tgid =3D current->group_leader->pid; + bo->debugfs.creator.tgid =3D current->tgid; get_task_comm(bo->debugfs.creator.process_name, current->group_leader); =20 mutex_lock(&ptdev->gems.lock); --=20 2.52.0