Revision 4d572d9f46507be8cfe326aa5bc3698babcbdfa7 authored by Avi Kivity on 08 June 2018, 19:12:32 UTC, committed by Al Viro on 15 June 2018, 00:07:38 UTC
The ->poll_mask() operation has a mask of events that the caller
is interested in, but we're returning all events regardless.

Change to return only the events the caller is interested in. This
fixes aio IO_CMD_POLL returning immediately when called with POLLIN
on an eventfd, since an eventfd is almost always ready for a write.

Signed-off-by: Avi Kivity <avi@scylladb.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 94aefd3
History

back to top