Commit e0b23d9
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>1 parent 9b43ef3 commit e0b23d9
1 file changed
Lines changed: 9 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1902 | 1902 | | |
1903 | 1903 | | |
1904 | 1904 | | |
1905 | | - | |
1906 | | - | |
1907 | | - | |
1908 | | - | |
1909 | | - | |
1910 | | - | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
1911 | 1908 | | |
1912 | | - | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
1913 | 1914 | | |
1914 | 1915 | | |
1915 | 1916 | | |
| |||
2080 | 2081 | | |
2081 | 2082 | | |
2082 | 2083 | | |
2083 | | - | |
2084 | | - | |
2085 | | - | |
| 2084 | + | |
2086 | 2085 | | |
2087 | 2086 | | |
2088 | 2087 | | |
| |||
0 commit comments