summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-06-20 02:25:55 +0200
committerJens Axboe <axboe@kernel.dk>2022-07-25 02:39:14 +0200
commit305bef98870816ae58357d647521891ec558a92e (patch)
tree48bd36c78596cd1775b197586d237e8a2bb90524 /include/net
parentio_uring: fix io_poll_remove_all clang warnings (diff)
downloadlinux-305bef98870816ae58357d647521891ec558a92e.tar.xz
linux-305bef98870816ae58357d647521891ec558a92e.zip
io_uring: hide eventfd assumptions in eventfd paths
Some io_uring-eventfd users assume that there won't be spurious wakeups. That assumption has to be honoured by all io_cqring_ev_posted() callers, which is inconvenient and from time to time leads to problems but should be maintained to not break the userspace. Instead of making the callers track whether a CQE was posted or not, hide it inside io_eventfd_signal(). It saves ->cached_cq_tail it saw last time and triggers the eventfd only when ->cached_cq_tail changed since then. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/0ffc66bae37a2513080b601e4370e147faaa72c5.1655684496.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions