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)
commit80c18e4ac20c9cde420cb3ffab48c936147cf07d
treea72690e3c6f2bc6d59994d642936e35289104dff
parent3e2224c5867fead6c0b94b84727cc676ac6353a3
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