]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring: fix retry handling off iowq
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 24 Mar 2025 15:32:32 +0000 (15:32 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 25 Mar 2025 18:37:43 +0000 (12:37 -0600)
commit3f0cb8de56b9a5c052a9e43fa548856926059810
treed3c5237c2be1ebd9aeb2f5de6604b74804d06c64
parent8e3100fcc5cbba03518b8b5c059624aba5c29d50
io_uring: fix retry handling off iowq

io_req_complete_post() doesn't handle reissue and if called with a
REQ_F_REISSUE request it might post extra unexpected completions. Fix it
by pushing into flush_completion via task work.

Fixes: d803d123948fe ("io_uring/rw: handle -EAGAIN retry at IO completion time")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/badb3d7e462881e7edbfcc2be6301090b07dbe53.1742829388.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c