]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring: optimise ltimeout for inline execution
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 1 Dec 2023 00:38:53 +0000 (00:38 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 12 Dec 2023 14:42:52 +0000 (07:42 -0700)
commite0b23d9953b0c1cf498f1ae2cba8032d0fb733cb
tree9fc85002de741a55caed1caeb6aaf8edf996b344
parent9b43ef3d52532a0175ed6654618f7db61d390d2e
io_uring: optimise ltimeout for inline execution

At one point in time we had an optimisation that would not spin up a
linked timeout timer when the master request successfully completes
inline (during the first nowait execution attempt). We somehow lost it,
so this patch restores it back.

Note, that it's fine using io_arm_ltimeout() after the io_issue_sqe()
completes the request because of delayed completion, but that that adds
unwanted overhead.

Reported-by: Christian Mazakas <christian.mazakas@gmail.com>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/8bf69c2a4beec14c565c85c86edb871ca8b8bcc8.1701390926.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c