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

kernel: provide create_io_thread() helper



Provide a generic helper for setting up an io_uring worker. Returns a
task_struct so that the caller can do whatever setup is needed, then call
wake_up_new_task() to kick it into gear.

Add a kernel_clone_args member, io_thread, which tells copy_process() to
mark the task with PF_IO_WORKER.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent dd59a3d5
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