io_uring: remove ->flush_cqes optimisation
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 19 Jun 2022 11:26:08 +0000 (12:26 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 22 Jun 2022 17:32:32 +0000 (11:32 -0600)
commitabb9030d1f03c310238a99bf42a9677217858fd0
tree0e86c8e2f8b645aff6ac890b62410bcd53468d31
parent3d4a210d8d4ad954bc72d58a848e5d33f642efd8
io_uring: remove ->flush_cqes optimisation

It's not clear how widely used IOSQE_CQE_SKIP_SUCCESS is, and how often
->flush_cqes flag prevents from completion being flushed. Sometimes it's
high level of concurrency that enables it at least for one CQE, but
sometimes it doesn't save much because nobody waiting on the CQ.

Remove ->flush_cqes flag and the optimisation, it should benefit the
normal use case. Note, that there is no spurious eventfd problem with
that as checks for spuriousness were incorporated into
io_eventfd_signal().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/692e81eeddccc096f449a7960365fa7b4a18f8e6.1655637157.git.asml.silence@gmail.com
[axboe: remove now dead state->flush_cqes variable]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/io_uring_types.h
io_uring/io_uring.c
io_uring/io_uring.h