Commit 6ad7f23
io_uring: clear F_REISSUE right after getting it
There are lots of ways r/w request may continue its path after getting
REQ_F_REISSUE, it's not necessarily io-wq and can be, e.g. apoll,
and submitted via io_async_task_func() -> __io_req_task_submit()
Clear the flag right after getting it, so the next attempt is well
prepared regardless how the request will be executed.
Fixes: 230d50d ("io_uring: move reissue into regular IO path")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/11dcead939343f4e27cab0074d34afcab771bfa4.1617842918.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent e82ad48 commit 6ad7f23
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3294 | 3294 | | |
3295 | 3295 | | |
3296 | 3296 | | |
| 3297 | + | |
3297 | 3298 | | |
3298 | 3299 | | |
3299 | 3300 | | |
| |||
3417 | 3418 | | |
3418 | 3419 | | |
3419 | 3420 | | |
3420 | | - | |
| 3421 | + | |
| 3422 | + | |
3421 | 3423 | | |
| 3424 | + | |
3422 | 3425 | | |
3423 | 3426 | | |
3424 | 3427 | | |
| |||
6173 | 6176 | | |
6174 | 6177 | | |
6175 | 6178 | | |
6176 | | - | |
6177 | 6179 | | |
6178 | 6180 | | |
6179 | 6181 | | |
| |||
0 commit comments