io_uring: test patch for fd passing io_uring-fd-pass
authorJens Axboe <axboe@kernel.dk>
Tue, 3 Mar 2020 22:45:36 +0000 (15:45 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 4 Mar 2020 03:04:48 +0000 (20:04 -0700)
commit843c96d0be7117bd89fcc9d9ed74f78130c2e527
tree14a66f81faa72704843df69cb21b63719b6fa08f
parent14309739929df6d23f2594dd19bc6784a2a3f7fd
io_uring: test patch for fd passing

This allows a chain link to set ->fd to IOSQE_FD_LAST_OPEN, which will
then be turned into the results from the last open (or accept) request
in the chain. If no open has been done, this isn't valid and the request
will be errored with -EBADF.

With this, we can define chains of open+read+close, where the read and
close part can work on the fd instantiated by the open request.

Totally a work in progress, POC so far.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/uapi/linux/io_uring.h