]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/io_uring.c
io_uring: clear F_REISSUE right after getting it
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 8 Apr 2021 00:54:39 +0000 (01:54 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Apr 2021 04:10:19 +0000 (22:10 -0600)
commit6ad7f2332e84c46f0c94e73e05b5b7c2bc1a6b74
treec6618101abd4ef44aa587286e30d7137036452e8
parente82ad4853948382d37ac512b27a3e70b6f01c103
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: 230d50d448ac ("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>
fs/io_uring.c