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>
Mon, 22 Mar 2021 13:42:44 +0000 (07:42 -0600)
commit832cc913ee21fae445f1050acefde6f3a1e0b794
tree28642965811a41578adc29cdd2452d50322547b8
parent0a2349da83f4e47ccc0b7e730a5b79ed06d77b90
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