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, 11 Apr 2021 23:41:57 +0000 (17:41 -0600)
commit2c4b8eb6435e615544b92acdcd4b25a85e83f300
treee8b8b1087c6f4ceb6f8b269a209a5dd335aa9373
parente83acd7d37d83035f2fe078f656f87418ea2a687
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