Main-line Linux kernel tree http://www.kernel.org
Go to file
Mike Christie 6e890c5d50
vhost: use vhost_tasks for worker threads
For vhost workers we use the kthread API which inherit's its values from
and checks against the kthreadd thread. This results in the wrong RLIMITs
being checked, so while tools like libvirt try to control the number of
threads based on the nproc rlimit setting we can end up creating more
threads than the user wanted.

This patch has us use the vhost_task helpers which will inherit its
values/checks from the thread that owns the device similar to if we did
a clone in userspace. The vhost threads will now be counted in the nproc
rlimits. And we get features like cgroups and mm sharing automatically,
so we can remove those calls.

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>
Signed-off-by: Christian Brauner <brauner@kernel.org>
2023-03-23 12:45:37 +01:00
arch csky: Remove kernel_thread declaration 2023-03-12 10:52:42 +01:00
block block-6.3-2023-03-03 2023-03-03 10:21:39 -08:00
certs
crypto
Documentation A small set of updates for x86: 2023-03-05 11:27:48 -08:00
drivers vhost: use vhost_tasks for worker threads 2023-03-23 12:45:37 +01:00
fs 17 hotfixes. Eight are for MM and seven are for other parts of the 2023-03-04 13:32:50 -08:00
include vhost_task: Allow vhost layer to use copy_process 2023-03-23 12:45:36 +01:00
init kernel: Allow a kernel thread's name to be set in copy_process 2023-03-12 10:52:46 +01:00
io_uring io_uring-6.3-2023-03-03 2023-03-03 10:25:29 -08:00
ipc
kernel vhost_task: Allow vhost layer to use copy_process 2023-03-23 12:45:36 +01:00
lib cpumask: re-introduce constant-sized cpumask optimizations 2023-03-05 14:30:34 -08:00
LICENSES
mm fork/vm: Move common PF_IO_WORKER behavior to new flag 2023-03-12 10:54:43 +01:00
net
rust Rust fixes for 6.3-rc1 2023-03-03 14:51:15 -08:00
samples
scripts Remove Intel compiler support 2023-03-05 10:49:37 -08:00
security
sound sound fixes for 6.3-rc1 2023-03-04 10:53:59 -08:00
tools
usr
virt
.clang-format cpumask: re-introduce constant-sized cpumask optimizations 2023-03-05 14:30:34 -08:00
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap mailmap: map Dikshita Agarwal's old address to his current one 2023-03-02 21:54:24 -08:00
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS vhost_task: Allow vhost layer to use copy_process 2023-03-23 12:45:36 +01:00
Makefile Linux 6.3-rc1 2023-03-05 14:52:03 -08:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.