io_uring: Add skip option for __io_sqe_files_update
authornoah <goldstein.w.n@gmail.com>
Tue, 26 Jan 2021 20:23:28 +0000 (15:23 -0500)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Jan 2021 22:57:04 +0000 (15:57 -0700)
commit1a818748972a63bf99cbc023e294f9facb1df8e9
treebbfe39ca00d7c08fd296c553d74fe78c3c45f807
parent81de6e152c065e83b2bf55e365bd102268c47e84
io_uring: Add skip option for __io_sqe_files_update

This patch adds support for skipping a file descriptor when using
IORING_REGISTER_FILES_UPDATE.  __io_sqe_files_update will skip fds set
to IORING_REGISTER_FILES_SKIP. IORING_REGISTER_FILES_SKIP is inturn
added as a #define in io_uring.h

Signed-off-by: noah <goldstein.w.n@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/uapi/linux/io_uring.h