commit | 2e6e1fde32d7d41cf076c21060c329d3fdbce25c | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Thu Dec 05 16:15:45 2019 +0300 |
committer | Jens Axboe <axboe@kernel.dk> | Thu Dec 05 06:54:51 2019 -0700 |
tree | 942e8f9c13e8a4773a44317934fc4dbb60793330 | |
parent | 78076bb64aa8ba5b7207c38b2660a9e10ffa8cc7 [diff] |
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>