]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: flag the fact that linked file assignment is sane
authorJens Axboe <axboe@kernel.dk>
Sun, 10 Apr 2022 21:13:24 +0000 (15:13 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 11 Apr 2022 01:08:18 +0000 (19:08 -0600)
commite6f30e0f7c0394c303f84f8ca0832b1962946876
tree796b3c37b860c82bb2bba81b92ac66e37da1c93e
parentef8e7cd3bfb3e514a5772f2c5874cf0913238d68
io_uring: flag the fact that linked file assignment is sane

Give applications a way to tell if the kernel supports sane linked files,
as in files being assigned at the right time to be able to reliably
do <open file direct into slot X><read file from slot X> while using
IOSQE_IO_LINK to order them.

Not really a bug fix, but flag it as such so that it gets pulled in with
backports of the deferred file assignment.

Fixes: fb187901eb95 ("io_uring: defer file assignment")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/uapi/linux/io_uring.h