Skip to contentSkip to conversation

io_uring: run task_work on io_uring_register()

PATCH Applied Pavel Begunkov 2 participants 2 messages Feb 20, 2021 – Feb 22, 2021 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 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.

---
 fs/io_uring.c | 2 ++
 1 file changed, 2 insertions(+)
fs/io_uring.c +2 -0
index ff8f50d3cf44..f2fdebaf28fe 100644
@@ -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
maintainer Applied
#2 lore raw
Quoted 2 lines · Pavel Begunkov

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.

Signature · 1 line
Jens Axboe