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>
Sun, 4 Apr 2021 21:27:16 +0000 (15:27 -0600)
commit0797391243cea5c081c143f22a7994fc4c549fbf
tree3a3bbb06ce00cffcfa6a0d802f1d1fc5095e65b6
parent8ab99842894f32ac19f657e0d1996bd349ef96d0
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