io_uring/cancel: don't default to setting req->work.cancel_seq
authorJens Axboe <axboe@kernel.dk>
Mon, 29 Jan 2024 03:11:55 +0000 (20:11 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Feb 2024 20:27:06 +0000 (13:27 -0700)
commit521223d7c229f83915619f888c99e952f24dc39f
treeb19885749949ac462562ebc474b8964edc85331f
parent4bcb982cce74e18155fba0d97394ca9634e0d8f0
io_uring/cancel: don't default to setting req->work.cancel_seq

Just leave it unset by default, avoiding dipping into the last
cacheline (which is otherwise untouched) for the fast path of using
poll to drive networked traffic. Add a flag that tells us if the
sequence is valid or not, and then we can defer actually assigning
the flag and sequence until someone runs cancelations.

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