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)
commitc4212f3eb89fd5654f0a6ed2ee1d13fcb86cb664
tree796b3c37b860c82bb2bba81b92ac66e37da1c93e
parentce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e
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: 6bf9c47a3989 ("io_uring: defer file assignment")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/uapi/linux/io_uring.h