io_uring/cancel: fix sequence matching for IORING_ASYNC_CANCEL_ANY
authorJens Axboe <axboe@kernel.dk>
Fri, 23 Jun 2023 15:38:26 +0000 (09:38 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 17 Jul 2023 16:05:48 +0000 (10:05 -0600)
commit3a372b66923e4af966af2900da588e3b3de6fcd2
treeee964de8edbe2e3c069a0f61aa1e572e98c3281b
parentaa5cd116f3c25c05e4724d7b5e24dc9ed9020a12
io_uring/cancel: fix sequence matching for IORING_ASYNC_CANCEL_ANY

We always need to check/update the cancel sequence if
IORING_ASYNC_CANCEL_ALL is set. Also kill the redundant check for
IORING_ASYNC_CANCEL_ANY at the end, if we get here we know it's
not set as we would've matched it higher up.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/cancel.c