]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: maintain CQE order of a failed link
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 25 Mar 2021 19:05:14 +0000 (19:05 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 25 Mar 2021 19:47:03 +0000 (13:47 -0600)
commit12f46a91c5264bc6c78533aedbd6b0faea2b7d94
tree32a12b3183e89e32bc6da294070eb4340d49e6d3
parentc885401f5ca95e9531ab9c5bc4a56d0e46933b75
io_uring: maintain CQE order of a failed link

Arguably we want CQEs of linked requests be in a strict order of
submission as it always was. Now if init of a request fails its CQE may
be posted before all prior linked requests including the head of the
link. Fix it by failing it last.

Fixes: 4720a30ff3788 ("io_uring: fail links more in io_submit_sqe()")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/b7a96b05832e7ab23ad55f84092a2548c4a888b0.1616699075.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c