Skip to content
Commit fcb323cc authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: io_uring: add support for async work inheriting files



This is in preparation for adding opcodes that need to add new files
in a process file table, system calls like open(2) or accept4(2).

If an opcode needs this, it must set IO_WQ_WORK_NEEDS_FILES in the work
item. If work that needs to get punted to async context have this
set, the async worker will assume the original task file table before
executing the work.

Note that opcodes that need access to the current files of an
application cannot be done through IORING_SETUP_SQPOLL.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 561fb04a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment