io_uring: unify files and task cancel
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 11 Apr 2021 00:46:27 +0000 (01:46 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Apr 2021 01:30:41 +0000 (19:30 -0600)
commit3f48cf18f886c97a7e775af10696bfed9ddcff31
tree00d78698ad48b43a7076c32e22da7ad77c106ecc
parentb303fe2e5a3802b0b1fb8d997e5c9caef48f6dd8
io_uring: unify files and task cancel

Now __io_uring_cancel() and __io_uring_files_cancel() are very similar
and mostly differ by how we count requests, merge them and allow
tctx_inflight() to handle counting.

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