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>
Showing
- include/linux/io_uring_types.h 3 additions, 0 deletionsinclude/linux/io_uring_types.h
- io_uring/cancel.c 1 addition, 2 deletionsio_uring/cancel.c
- io_uring/cancel.h 10 additions, 0 deletionsio_uring/cancel.h
- io_uring/io_uring.c 0 additions, 1 deletionio_uring/io_uring.c
- io_uring/poll.c 1 addition, 5 deletionsio_uring/poll.c
Please register or sign in to comment