]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2e6852cd98160e3175c6ad46d01b48ef8c409935
treee8b8b1087c6f4ceb6f8b269a209a5dd335aa9373
parent32102f702d5e28e33311ef71ab007edb2e90cd7c
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