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>
Mon, 22 Mar 2021 13:42:53 +0000 (07:42 -0600)
commit20564fde0025480f2c7eac0f68f8e6140c8dffcb
tree05710dcc56a6857b09a5f3746c19b66e604642dd
parent208b07fa8faf7496dccb13586197bdc22a0c5ea1
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