io_uring: reuse io_req_task_queue_fail()
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 28 Feb 2021 22:35:10 +0000 (22:35 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Mar 2021 14:31:36 +0000 (07:31 -0700)
commite6441afe0945bbee17f4390439a65d6685d8819e
treeb9351fb162a9afd764056d4e310407d29d216058
parentb288fc01f42d99bf2d4d194ead1f9bdae3c35aea
io_uring: reuse io_req_task_queue_fail()

Use io_req_task_queue_fail() on the fail path of io_req_task_queue().
It's unlikely to happen, so don't care about additional overhead, but
allows to keep all the req->result invariant in a single function.

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