io_uring: run task_work on io_uring_register()
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 20 Feb 2021 15:17:18 +0000 (15:17 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Feb 2021 00:18:56 +0000 (17:18 -0700)
commitb6c23dd5a483174f386e4c2e1711d9532e090c00
tree052e738e5cf894cf1c505777eaa4c7a8301be60d
parentebf4a5db690a47e71056381ead8a134de7202694
io_uring: run task_work on io_uring_register()

Do run task_work before io_uring_register(), that might make a first
quiesce round much nicer. We generally do that for any syscall invocation
to avoid spurious -EINTR/-ERESTARTSYS, for task_work that we generate.
This patch brings io_uring_register() inline with the two other io_uring
syscalls.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c