io_uring: unify task and files cancel loops
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 11 Apr 2021 00:46:25 +0000 (01:46 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Apr 2021 01:30:40 +0000 (19:30 -0600)
commit368b2080853f4694db780528c942f191f1c1687c
treef418da69065f31931152608e408a777b80282782
parent0ea13b448ee75ef0c68c18d207f6c488f143e725
io_uring: unify task and files cancel loops

Move tracked inflight number check up the stack into
__io_uring_files_cancel() so it's similar to task cancel. Will be used
for further cleaning.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/dca5a395efebd1e3e0f3bbc6b9640c5e8aa7e468.1618101759.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c