]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix submission-failure handling for uring-cmd
authorKanchan Joshi <joshi.k@samsung.com>
Tue, 23 Aug 2022 15:10:22 +0000 (20:40 +0530)
committerJens Axboe <axboe@kernel.dk>
Tue, 23 Aug 2022 15:46:17 +0000 (09:46 -0600)
commita1646fa2b88f67ec6c0805fed4a6d6d7fc1f3247
treed515190000581228e2a9b311f3ab379b2f732966
parent9c0d61bba22f96bcadc352d231bd373f29106206
io_uring: fix submission-failure handling for uring-cmd

If ->uring_cmd returned an error value different from -EAGAIN or
-EIOCBQUEUED, it gets overridden with IOU_OK. This invites trouble
as caller (io_uring core code) handles IOU_OK differently than other
error codes.
Fix this by returning the actual error code.

Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/uring_cmd.c