]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - fs/io_uring.c
io_uring: remove ctx referencing from complete_post
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 15 Sep 2021 11:04:20 +0000 (12:04 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:53 +0000 (05:49 -0600)
commita3f349071eb0ae2aa18ac2da55060865d8190cf0
treebae7b570933a2771e24d30e398e500a635e7097c
parent83f84356bc8f2dda9d0c9c7edb94decf71a36d26
io_uring: remove ctx referencing from complete_post

Now completions are done from task context, that means that it's either
the task itself, task_work or io-wq worker. In all those cases the ctx
will be staying alive by mutexing, explicit referencing or req references
by iowq. Remove extra ctx pinning from io_req_complete_post().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/60a0e96434c16ab4fe587651448290d61ec9a113.1631703756.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c