aio-posix: don't pass ns timeout to epoll_wait()
commitca8c6b22754b0f17818b1d1910d31f0aa1a49cc7
authorStefan Hajnoczi <stefanha@redhat.com>
Fri, 14 Feb 2020 17:17:09 +0000 (14 17:17 +0000)
committerStefan Hajnoczi <stefanha@redhat.com>
Sat, 22 Feb 2020 08:26:47 +0000 (22 08:26 +0000)
treefe5d04fa9f2ab59f7bbb37fc1b3997e8ea902703
parentff29ed3a331d0cd26bcd30f7cd6c0c96c7d44eed
aio-posix: don't pass ns timeout to epoll_wait()

Don't pass the nanosecond timeout into epoll_wait(), which expects
milliseconds.

The epoll_wait() timeout value does not matter if qemu_poll_ns()
determined that the poll fd is ready, but passing a value in the wrong
units is still ugly.  Pass a 0 timeout to epoll_wait() instead.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Message-id: 20200214171712.541358-3-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
util/aio-posix.c