io_uring: remove __io_req_task_cancel()
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 19 Mar 2021 17:22:40 +0000 (17:22 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 4 Apr 2021 21:27:24 +0000 (15:27 -0600)
commitfc8fdfc1dd8d142bf7e93eb94c9e935629805fc2
treebdd9e3815ef7e2db8660a2fdce9ceccff09547f4
parent37ca22dacade1eaf25d641369341b5d65c694f33
io_uring: remove __io_req_task_cancel()

Both io_req_complete_failed() and __io_req_task_cancel() do the same
thing: set failure flag, put both req refs and emit an CQE. The former
one is a bit more advance as it puts req back into a req cache, so make
it to take over __io_req_task_cancel() and remove the last one.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c