Stefan Hajnoczi aa38e19f05 aio-posix: support userspace polling of fd monitoring
Unlike ppoll(2) and epoll(7), Linux io_uring completions can be polled
from userspace.  Previously userspace polling was only allowed when all
AioHandler's had an ->io_poll() callback.  This prevented starvation of
fds by userspace pollable handlers.

Add the FDMonOps->need_wait() callback that enables userspace polling
even when some AioHandlers lack ->io_poll().

For example, it's now possible to do userspace polling when a TCP/IP
socket is monitored thanks to Linux io_uring.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Link: https://lore.kernel.org/r/20200305170806.1313245-7-stefanha@redhat.com
Message-Id: <20200305170806.1313245-7-stefanha@redhat.com>
2020-03-09 16:41:31 +00:00
..
2018-09-25 15:50:15 +02:00
2020-02-22 08:26:47 +00:00
2018-10-02 18:47:55 +02:00
2020-01-06 18:41:32 +04:00
2019-08-16 13:31:52 +02:00
2020-02-19 11:17:40 +01:00
2019-09-11 08:46:17 +02:00
2020-01-02 16:29:32 +04:00
2019-12-18 08:36:15 +01:00
2018-12-20 10:29:08 +01:00
2019-12-17 19:33:52 +01:00
2018-08-24 20:26:37 +02:00
2018-06-29 12:32:10 +02:00