]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: trigger eventfd for IOPOLL
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 7 Jan 2021 03:15:41 +0000 (03:15 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 7 Jan 2021 14:48:09 +0000 (07:48 -0700)
commitc08036786bb4fb81ff5bbd7b882b4b08c221b77b
treea72690e3c6f2bc6d59994d642936e35289104dff
parent885f4c8dce261ad39170fff1c3497719133c8173
io_uring: trigger eventfd for IOPOLL

Make sure io_iopoll_complete() tries to wake up eventfd, which currently
is skipped together with io_cqring_ev_posted() for non-SQPOLL IOPOLL.

Add an iopoll version of io_cqring_ev_posted(), duplicates a bit of
code, but they actually use different sets of wait queues may be for
better.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c