fork/vm: Move common PF_IO_WORKER behavior to new flag
authorMike Christie <michael.christie@oracle.com>
Fri, 10 Mar 2023 22:03:26 +0000 (16:03 -0600)
committerChristian Brauner (Microsoft) <brauner@kernel.org>
Sun, 12 Mar 2023 09:54:43 +0000 (10:54 +0100)
commit54e6842d0775ba76db65cbe21311c3ca466e663d
treea530a9aaf2f6cb9a1037c178fba5d111ace28135
parentc81cc5819faf5dd77124f5086aa654482281ac37
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>
include/linux/sched.h
include/linux/sched/task.h
kernel/fork.c
mm/vmscan.c