The source for the Linux kernel used in Windows Subsystem for Linux 2 (WSL2)
Перейти к файлу
Pavel Begunkov 0091bfc817 io_uring/af_unix: defer registered files gc to io_uring release
Instead of putting io_uring's registered files in unix_gc() we want it
to be done by io_uring itself. The trick here is to consider io_uring
registered files for cycle detection but not actually putting them down.
Because io_uring can't register other ring instances, this will remove
all refs to the ring file triggering the ->release path and clean up
with io_ring_ctx_free().

Cc: stable@vger.kernel.org
Fixes: 6b06314c47 ("io_uring: add file set registration")
Reported-and-tested-by: David Bouman <dbouman03@gmail.com>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
[axboe: add kerneldoc comment to skb, fold in skb leak fix]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-10-12 16:30:34 -06:00
Documentation 24 ksmbd server fixes 2022-10-07 08:19:26 -07:00
LICENSES
arch for-6.1/block-2022-10-03 2022-10-07 09:19:14 -07:00
block for-6.1/passthrough-2022-10-04 2022-10-07 09:35:50 -07:00
certs
crypto
drivers drm fix for 6.1-rc1 2022-10-07 09:47:47 -07:00
fs for-6.1/block-2022-10-03 2022-10-07 09:19:14 -07:00
include io_uring/af_unix: defer registered files gc to io_uring release 2022-10-12 16:30:34 -06:00
init
io_uring io_uring/af_unix: defer registered files gc to io_uring release 2022-10-12 16:30:34 -06:00
ipc
kernel for-6.1/block-2022-10-03 2022-10-07 09:19:14 -07:00
lib for-6.1/block-2022-10-03 2022-10-07 09:19:14 -07:00
mm for-6.1/block-2022-10-03 2022-10-07 09:19:14 -07:00
net io_uring/af_unix: defer registered files gc to io_uring release 2022-10-12 16:30:34 -06:00
rust
samples
scripts
security whack-a-mole: constifying struct path * 2022-10-06 17:31:02 -07:00
sound
tools for-6.1/io_uring-2022-10-03 2022-10-07 08:52:43 -07:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS for-6.1/block-2022-10-03 2022-10-07 09:19:14 -07:00
Makefile
README

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.