* [PATCH 1/1] io_uring: run task_work on io_uring_register() [not found] <[email protected]> @ 2021-02-20 15:17 ` Pavel Begunkov 2021-02-22 0:19 ` Jens Axboe 0 siblings, 1 reply; 2+ messages in thread From: Pavel Begunkov @ 2021-02-20 15:17 UTC (permalink / raw) To: Jens Axboe, io-uring Do 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(+) diff --git a/fs/io_uring.c b/fs/io_uring.c index ff8f50d3cf44..f2fdebaf28fe 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -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); -- 2.24.0 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] io_uring: run task_work on io_uring_register() 2021-02-20 15:17 ` [PATCH 1/1] io_uring: run task_work on io_uring_register() Pavel Begunkov @ 2021-02-22 0:19 ` Jens Axboe 0 siblings, 0 replies; 2+ messages in thread From: Jens Axboe @ 2021-02-22 0:19 UTC (permalink / raw) To: Pavel Begunkov, io-uring On 2/20/21 8:17 AM, Pavel Begunkov wrote: > Do run task_work before io_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. -- Jens Axboe ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-22 0:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <[email protected]>
2021-02-20 15:17 ` [PATCH 1/1] io_uring: run task_work on io_uring_register() Pavel Begunkov
2021-02-22 0:19 ` Jens Axboe
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox