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>
Thu, 25 Mar 2021 16:24:16 +0000 (10:24 -0600)
commit727a6b15224c35eef441f1d14bd1ae0e5593eb63
treeb32e7942b517415c6d63c85a93ad43886cae6e7e
parentefbdd9a4bce97855538559911a05a3a99e73feb3
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