All of lore.kernel.org
 help / color / mirror / Atom feed
* + kernel-fork-update-obsolete-use_mm-references-to-kthread_use_mm.patch added to mm-nonmm-unstable branch
@ 2026-01-07 17:29 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2026-01-07 17:29 UTC (permalink / raw)
  To: mm-commits, vschneid, vincent.guittot, vbabka, surenb, rppt,
	rostedt, peterz, mingo, mhocko, mgorman, lorenzo.stoakes,
	Liam.Howlett, kees, juri.lelli, jqqlijiazi, dietmar.eggemann,
	david, bsegall, mingzhu.wang, akpm

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3444 bytes --]


The patch titled
     Subject: kernel/fork: update obsolete use_mm references to kthread_use_mm
has been added to the -mm mm-nonmm-unstable branch.  Its filename is
     kernel-fork-update-obsolete-use_mm-references-to-kthread_use_mm.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/kernel-fork-update-obsolete-use_mm-references-to-kthread_use_mm.patch

This patch will later appear in the mm-nonmm-unstable branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days

------------------------------------------------------
From: mingzhu.wang(王明珠) <mingzhu.wang@transsion.com>
Subject: kernel/fork: update obsolete use_mm references to kthread_use_mm
Date: Wed, 7 Jan 2026 08:15:32 +0000

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.

Link: https://lkml.kernel.org/r/KUZPR04MB8965F954108B4DD7E8FFDB2B8F84A@KUZPR04MB8965.apcprd04.prod.outlook.com
Signed-off-by: mingzhu.wang <mingzhu.wang@transsion.com>
Cc: Ben Segall <bsegall@google.com>
Cc: David Hildenbrand <david@kernel.org>
Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiazi Li <jqqlijiazi@gmail.com>
Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Kees Cook <kees@kernel.org>
Cc: "Liam R. Howlett" <Liam.Howlett@oracle.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Valentin Schneider <vschneid@redhat.com>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 kernel/fork.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/kernel/fork.c~kernel-fork-update-obsolete-use_mm-references-to-kthread_use_mm
+++ a/kernel/fork.c
@@ -1360,7 +1360,7 @@ struct file *get_task_exe_file(struct ta
  * @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,
  * 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.
_

Patches currently in -mm which might be from mingzhu.wang@transsion.com are

kernel-fork-update-obsolete-use_mm-references-to-kthread_use_mm.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-01-07 17:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-07 17:29 + kernel-fork-update-obsolete-use_mm-references-to-kthread_use_mm.patch added to mm-nonmm-unstable branch Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.