public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] kernel: Standardize task comm setup for kthreads
@ 2023-02-13  1:00 Mike Christie
  2023-02-13  1:00 ` [PATCH 1/5] kernel: Move kernel_clone_args's fn to new struct Mike Christie
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Mike Christie @ 2023-02-13  1:00 UTC (permalink / raw)
  To: brauner, ebiederm, torvalds, linux-kernel

The following patches were made over Linus's tree. They standardize the
task->comm initialization. Currently, kthreads will set it up after a
successful kthread_thread call in the calling function. io_uring will
set it from the thread fn. And the vhost task patches added it's own
helper.

This patchset adds a new kernel clone args callout, setup_thread_fn,
which can be used to setup an internal struct, like is needed by
kthreads, and can also be used to set the task->comm like is needed
by kthread, io_uring and vhost.

Note that I have not yet compile tested all the archs in the first
patch. I was not sure if Linus was going to prefer this patchset's
approach to setting the comm or would like to leave it as it is now.
So this more of a RFC.




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

end of thread, other threads:[~2023-02-14 18:01 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-13  1:00 [PATCH 0/5] kernel: Standardize task comm setup for kthreads Mike Christie
2023-02-13  1:00 ` [PATCH 1/5] kernel: Move kernel_clone_args's fn to new struct Mike Christie
2023-02-13  3:30   ` kernel test robot
2023-02-13  5:28   ` kernel test robot
2023-02-13 19:57   ` Linus Torvalds
2023-02-13  1:00 ` [PATCH 2/5] kernel: Add kernel_clone_fns function to setup task Mike Christie
2023-02-13  1:00 ` [PATCH 3/5] io_uring: Convert to use setup_thread_fn callout Mike Christie
2023-02-13  1:00 ` [PATCH 4/5] kernel: Prepare set_kthread_struct to be used for setup_thread_fn Mike Christie
2023-02-13 19:54   ` Linus Torvalds
2023-02-14  0:50     ` Mike Christie
2023-02-14 18:00       ` Linus Torvalds
2023-02-13  1:00 ` [PATCH 5/5] kernel: Convert kthread to use setup_thread_fn Mike Christie
2023-02-13  3:41   ` kernel test robot
2023-02-13  3:41   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox