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>
Mon, 1 Feb 2021 17:02:43 +0000 (10:02 -0700)
commit4e0377a1c5c633852f443a562ec55f7dfea65350
treeda82d3cfe9c6b612d7e0bacc32408ca7c9816634
parent67973b933e347c38478b591d6c9dc076bea7c9dc
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