io_uring/cancel: abstract out request match helper
authorJens Axboe <axboe@kernel.dk>
Fri, 23 Jun 2023 15:00:24 +0000 (09:00 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 17 Jul 2023 16:05:48 +0000 (10:05 -0600)
commitaa5cd116f3c25c05e4724d7b5e24dc9ed9020a12
treefdbf8a63cdfd46a8773c5de4b804f2b127e44857
parentfaa9c0ee3cab9c68b79183c9e0111ba967d9f402
io_uring/cancel: abstract out request match helper

We have different match code in a variety of spots. Start the cleanup of
this by abstracting out a helper that can be used to check if a given
request matches the cancelation criteria outlined in io_cancel_data.

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