Skip to content
Commit 4d572d9f authored by Avi Kivity's avatar Avi Kivity Committed by Al Viro
Browse files

eventfd: only return events requested in poll_mask()



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: default avatarAvi Kivity <avi@scylladb.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 94aefd32
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment