io_uring: run task_work on io_uring_register()
PATCH 1/1 io_uring: run task_work on io_uring_register()
In reply to a message not in the archiveDo run task_work before io_uring_register(), that might make a first quiesce round much nicer.
Signed-off-by Pavel Begunkov <[email protected]>
--- fs/io_uring.c | 2 ++ 1 file changed, 2 insertions(+)
fs/io_uring.c +2 -0
@@ -10212,6 +10212,8 @@ SYSCALL_DEFINE4(io_uring_register, unsigned int, fd, unsigned int, opcode, ctx = f.file->private_data; +io_run_task_work (); +mutex_lock (&ctx->uring_lock); ret =__io_uring_register (ctx, opcode, arg, nr_args);mutex_unlock (&ctx->uring_lock);
Signature · 1 line
2.24.0
Quoted 2 lines · Pavel Begunkov
Do run
task_workbeforeio_uring_register(), that might make a first quiesce round much nicer.
Applied, thanks. I added a bit more to the commit message, since this is what we're doing for the other io_uring syscalls as well.
Signature · 1 line
Jens Axboe