From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7034C322522 for ; Tue, 6 Jan 2026 11:53:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767700423; cv=none; b=b00OThSSPa/zz1r+81OOpG49nhcLl3TI0/qwctFR9GvcXMy1UBp6JgnVE95I/0KJGh98GaFkP4dRhZi7UhDQaGVyjFXBgqwkLK9rd9g8DLX0CSan9y5qJYLRJpx3I4Rer0ocms7b8dW/VpZS+yUtrh1Q5+L28RG4fqOVpSF6dvs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767700423; c=relaxed/simple; bh=Xvn0KzHIQsQJ6c1k2KNmeqFTL3hrNo5vss3Rvb9PW70=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=brB4X9ybsIlqg4dyR8ZBBwOcKDWJbsgdNblMo6L+GSkNQcejJeObABcu4eLK9a2QNUZHC5RBoPVVwp3p6vpau9UTjn4Fa7OU27JkdQvsMyslaoNyaGOW1FYGhQIYCrYP7Cjybl5Ug0z6azYuoe9zLOAMV3cWer9q3/S1II5uDnU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mpWa0tkG; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mpWa0tkG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B8EFC116C6; Tue, 6 Jan 2026 11:53:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767700422; bh=Xvn0KzHIQsQJ6c1k2KNmeqFTL3hrNo5vss3Rvb9PW70=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mpWa0tkGKJJZcUU3PuFjeMR/w4u/o/WnuY5JZwNftW24ZMVIAH1rUX5AeBEAhwk+G 5FH/DgK5ZQpwuAA1JpxnW1WkYQHNNXapqhx+i2vJnP44dxhugTeSPcGb5gfHCXEEcd 8+7jWpgOnkoE1gNPD8GHpdpsLrJdUYMJCUWvFIdHAfpCZUN6M7VI84+I8fUNPtnBSp UDQgttD3jejLWDfzwXhHTLSaOAH0lkle2WsEWJ/dAmyh00V63xrekOvaD9nN3Vz8XB F2BI4Ff7TEM2WNYd3v0cJaFyvLuXWxyK6m80OiMxckLMMqH0sNml2VqfWc0vR8hxto 8WJD8ndFbIg6w== Date: Tue, 6 Jan 2026 13:53:34 +0200 From: Mike Rapoport To: "David Hildenbrand (Red Hat)" Cc: Michal Hocko , =?utf-8?B?bWluZ3podS53YW5nKOeOi+aYjuePoCk=?= , "kees@kernel.org" , "mingo@redhat.com" , "peterz@infradead.org" , "akpm@linux-foundation.org" , "dietmar.eggemann@arm.com" , "mgorman@suse.de" , "vbabka@suse.cz" , "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, Jan 06, 2026 at 10:29:03AM +0100, David Hildenbrand (Red Hat) wrote: > On 1/6/26 10:26, Michal Hocko wrote: > > 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. > > But please do so in the patch description, where the maximum should usually > be 72 characters per line. :) 75 ;-P https://docs.kernel.org/process/submitting-patches.html#describe-your-changes > -- > Cheers > David -- Sincerely yours, Mike.