linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] sched/core: Show user_cpus_ptr & allow its reset
@ 2025-10-29 21:55 Waiman Long
  2025-10-29 21:55 ` [PATCH v2 1/2] sched/core: Enable full cpumask to clear user cpumask in sched_setaffinity() Waiman Long
  2025-10-29 21:55 ` [PATCH v2 2/2] fs/proc: Show the content of task->user_cpus_ptr in /proc/<pid>/status Waiman Long
  0 siblings, 2 replies; 3+ messages in thread
From: Waiman Long @ 2025-10-29 21:55 UTC (permalink / raw)
  To: Ingo Molnar, Peter Zijlstra, Juri Lelli, Vincent Guittot,
	Dietmar Eggemann, Steven Rostedt, Ben Segall, Mel Gorman,
	Valentin Schneider, Jonathan Corbet
  Cc: linux-kernel, linux-fsdevel, linux-doc, Andrew Morton,
	David Hildenbrand, Catalin Marinas, Nico Pache, Phil Auld,
	John Coleman, Waiman Long

 v2: Make minor change in patch 2 to show the new status fields will be
     empty if user_cpus_ptr not defined.

As the presence of user_cpus_ptr will affect how the CPU affinity of a
process will be defined, it makes sense to enable users to see if the
user_cpus_ptr of a process is set as well as enabling the clearing of
user_cpus_ptr if it is not needed.

Waiman Long (2):
  sched/core: Enable full cpumask to clear user cpumask in
    sched_setaffinity()
  fs/proc: Show the content of task->user_cpus_ptr in /proc/<pid>/status

 Documentation/filesystems/proc.rst |  3 +++
 fs/proc/array.c                    |  9 +++++++++
 kernel/sched/syscalls.c            | 20 ++++++++++++++------
 3 files changed, 26 insertions(+), 6 deletions(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-10-29 21:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-29 21:55 [PATCH v2 0/2] sched/core: Show user_cpus_ptr & allow its reset Waiman Long
2025-10-29 21:55 ` [PATCH v2 1/2] sched/core: Enable full cpumask to clear user cpumask in sched_setaffinity() Waiman Long
2025-10-29 21:55 ` [PATCH v2 2/2] fs/proc: Show the content of task->user_cpus_ptr in /proc/<pid>/status Waiman Long

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).