From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 038C51519AC for ; Tue, 6 Jan 2026 09:26:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767691612; cv=none; b=QzyK1OYmJWVLLy706JsUbf7mHa7ThaawqAAD1FkRmDRXdGREl0qXq8eH6CztLSp7aHc1oh+qgg011g6a/66ob7PzhOYNQ9GkoJF/8bBmEPDYXJ49FU1FLncdDGa0vwMgluYdQSwGYq0FMECbjjU9x5G8A1C5FKH9c0D3P9HFQnY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767691612; c=relaxed/simple; bh=1zAETX/Aw2dxNp3fJ0rGrBawY6mtJmB03cKsgwAsI2I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mEKzISj9Uu40SJEun1DQacmaGtGTcOPsgnixiCtZdJSmtK4WuZtyVqjKwRALWIHMJcyB/FMndazXJh9AJlQidbGXmiS9YvXu3g95uJIpJC3NjFiPuqhgZxTIfP0waMQbdf67tq1sOTlF7p+m7UhDqT0w93x9ZntioKOkBpdiXj0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=Ml1x+lQv; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="Ml1x+lQv" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4775ae77516so8211225e9.1 for ; Tue, 06 Jan 2026 01:26:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1767691607; x=1768296407; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=ThahM5kzCyF/bcf5aqITnXQU9yOqrJhpyOse64okuuA=; b=Ml1x+lQv7nDBJj3Utiknf1eqffl6jPQh9NisSVDHd8iqkr5w2A44hjCAl+okTHKWJD 9dBaCZ7/FlsJAkB2lIRT8La6hHLIQmW8QKcKo+HQCU4pO57OjffH90/jTZgarVGxMyE1 Z/Do00jAWmWSYzMb2hk2PKG4yENhsH3ZJlRC/MbWiGi9xz5jm9kibAZaRYnw1B3JPyFx ps1tscJdwtYMwL56TE+HmFEOMDhCP0niPQViUuPwvpmd52r6cyKerERnf7HcODVO8Z0O IUiRCt9NB96VLJYi3F5AsQq0jeR5OKp5qn9Yga1PwaBXw2anLbYy0n1T46lmigIegaC9 6wYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767691607; x=1768296407; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ThahM5kzCyF/bcf5aqITnXQU9yOqrJhpyOse64okuuA=; b=A4dV64MGNGTS2TjjmpX4s3JpugF9UraO8+W72g540kczkjOdXuCg6ISkyWkNuTDJUH twvrbkfLve6MzOI7E2t9XNXDiNQRsd23di1BJaVBlnxbITbY6AfO0eTLWjROudpq5WGW UVxHo3ynutwVkzNLFNwU0g7o1lCNg/27XszOqoWDfG7flGT5oAB6GpUeXHXOwrCCNKUD 47OTK5A9m/ay8ys27YrzNHwpOG7IBYib2G3j5dz66as8kcWycE2CKmLMaFIP+2R5kUYY RGceeNOUzlQloBwGOcojMj28IbW5WWiEHt5Gw9tBjHJBFrJhTYf7iLTByKV/iMplYA4K DiPA== X-Forwarded-Encrypted: i=1; AJvYcCWcw0OXTG8xYkiqVH0zNfK3JRTimAEnnR/NyiDoa+52CZeXXImpFSl1tLzXYR3zuh3lUC8L90EmE+4dqv4=@vger.kernel.org X-Gm-Message-State: AOJu0YzuPUEtjZBmk7/mHa/XuvcJLNURKjx4R9+73s/jFHrEDKvYszAN qgM9l26U1VWkkt7aZyqM9ogdg8OI4JlDNdOlwyxTL7NLumerRA/qx57nmTnUjJ6y/o0= X-Gm-Gg: AY/fxX4BQXgbFkC6/jsr+ptki5zXFLQUlR8GSYikAckI2DT/EfKhGBoR0TIDwqGxSg4 tb2sAWYeeNgQld2HZeZEwWJNaWm9tA62fkWP0oCewnhAHGrZpen9u1kLUQmNg4FbMdrvRwkuMP+ auSlodhUQhIN1qbL9UPo1Z8s7g8nnThjyarcNCfgy837Fk6nfPq9dQihBDG37tMG9taZ/SINF5R pu9I93Trn9LwIPT7C2hQwS8wSb4Yg/jofcb7XtlzVqvpBgoCmRIF9nGRUbqyCePgpi/+Jvoz//H yOlcb3JzMiPDpsBVx4VMpmewsArH9N8JmssGiNeImcHTqgPXkf5OC2599ORtG4mOLT5vlk6l8mJ jN69zlMCeqYFKahxl5l7+M0uOusCuuV5BMrDOGCNk2PZOFrTijKQCC2nUpateX5ReRxsFsRzsPx sAcDGEXkiHITtpaYxm9EfP95Hu X-Google-Smtp-Source: AGHT+IFA2sUx7cpb1VtQXR82cWPP/ZiEyOCYDZLzHkQtueqm0gxbr/csKzRMDLoxbmlB7+GJ3HwwMw== X-Received: by 2002:a05:600c:190e:b0:47d:3ead:7440 with SMTP id 5b1f17b1804b1-47d7f0a3534mr25549885e9.32.1767691607267; Tue, 06 Jan 2026 01:26:47 -0800 (PST) Received: from localhost (109-81-90-116.rct.o2.cz. [109.81.90.116]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-432bd5ee5eesm3259137f8f.34.2026.01.06.01.26.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jan 2026 01:26:46 -0800 (PST) Date: Tue, 6 Jan 2026 10:26:45 +0100 From: Michal Hocko To: =?utf-8?B?bWluZ3podS53YW5nKOeOi+aYjuePoCk=?= Cc: "kees@kernel.org" , "mingo@redhat.com" , "peterz@infradead.org" , "akpm@linux-foundation.org" , "david@redhat.com" , "dietmar.eggemann@arm.com" , "mgorman@suse.de" , "vbabka@suse.cz" , "rppt@kernel.org" , "surenb@google.com" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Jiazi Li Subject: Re: [PATCH RESEND] kernel/fork: Update obsolete use_mm references to kthread_use_mm Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Tue 06-01-26 07:05:28, mingzhu.wang(王明珠) wrote: > The comment for get_task_mm() in kernel/fork.c incorrectly references the deprecated function `use_mm()`, which has been renamed to `kthread_use_mm()` in kernel/kthread.c. > This patch updates the documentation to reflect the current function names, ensuring accuracy when developers refer to the kernel thread memory context API. > No functional changes were introduced. > > Signed-off-by: mingzhu.wang > --- > kernel/fork.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/fork.c b/kernel/fork.c index c4ada32598bd..64e228c541bc 100644 > --- a/kernel/fork.c > +++ b/kernel/fork.c > @@ -1312,7 +1312,7 @@ struct file *get_task_exe_file(struct task_struct *task) > * @task: The task. > * > * Returns %NULL if the task has no mm. Checks PF_KTHREAD (meaning > - * this kernel workthread has transiently adopted a user mm with use_mm, > + * this kernel workthread has transiently adopted a user mm with > + kthread_use_mm, Please do not wrap the line here. > * to do its AIO) is not set and if so returns a reference to it, after > * bumping up the use count. User must release the mm via mmput() > * after use. Typically used by /proc and ptrace. > -- > 2.34.1 -- Michal Hocko SUSE Labs