summaryrefslogtreecommitdiff
path: root/include/linux/sched/task.h
diff options
context:
space:
mode:
authorMike Christie <michael.christie@oracle.com>2023-03-11 01:03:26 +0300
committerChristian Brauner (Microsoft) <brauner@kernel.org>2023-03-12 12:54:43 +0300
commit54e6842d0775ba76db65cbe21311c3ca466e663d (patch)
treea530a9aaf2f6cb9a1037c178fba5d111ace28135 /include/linux/sched/task.h
parentc81cc5819faf5dd77124f5086aa654482281ac37 (diff)
downloadlinux-54e6842d0775ba76db65cbe21311c3ca466e663d.tar.xz
fork/vm: Move common PF_IO_WORKER behavior to new flag
This adds a new flag, PF_USER_WORKER, that's used for behavior common to to both PF_IO_WORKER and users like vhost which will use a new helper instead of create_io_thread because they require different behavior for operations like signal handling. The common behavior PF_USER_WORKER covers is the vm reclaim handling. Signed-off-by: Mike Christie <michael.christie@oracle.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Diffstat (limited to 'include/linux/sched/task.h')
-rw-r--r--include/linux/sched/task.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sched/task.h b/include/linux/sched/task.h
index 268c77a42155..2950e83d5382 100644
--- a/include/linux/sched/task.h
+++ b/include/linux/sched/task.h
@@ -27,6 +27,7 @@ struct kernel_clone_args {
int exit_signal;
u32 kthread:1;
u32 io_thread:1;
+ u32 user_worker:1;
unsigned long stack;
unsigned long stack_size;
unsigned long tls;