]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix error handling in io_queue_link_head
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 5 Dec 2019 13:15:45 +0000 (16:15 +0300)
committerJens Axboe <axboe@kernel.dk>
Thu, 5 Dec 2019 13:54:51 +0000 (06:54 -0700)
commit2e6e1fde32d7d41cf076c21060c329d3fdbce25c
tree942e8f9c13e8a4773a44317934fc4dbb60793330
parent78076bb64aa8ba5b7207c38b2660a9e10ffa8cc7
io_uring: fix error handling in io_queue_link_head

In case of an error io_submit_sqe() drops a request and continues
without it, even if the request was a part of a link. Not only it
doesn't cancel links, but also may execute wrong sequence of actions.

Stop consuming sqes, and let the user handle errors.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c