]> www.infradead.org Git - users/dwmw2/linux.git/commit
io_uring: align iowq and task request error handling
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 24 Jul 2024 11:16:21 +0000 (12:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 24 Jul 2024 14:01:49 +0000 (08:01 -0600)
commit29d63b94036e561a016ec8878b44aad6650d23e2
tree33ce3375ca93106837a479ab15b46b246ec7dd10
parenta2b72b81fb3ba18717fc000949ca9d45a3351130
io_uring: align iowq and task request error handling

There is a difference in how io_queue_sqe and io_wq_submit_work treat
error codes they get from io_issue_sqe. The first one fails anything
unknown but latter only fails when the code is negative.

It doesn't make sense to have this discrepancy, align them to the
io_queue_sqe behaviour.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/c550e152bf4a290187f91a4322ddcb5d6d1f2c73.1721819383.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c