commit | 4d572d9f46507be8cfe326aa5bc3698babcbdfa7 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@scylladb.com> | Fri Jun 08 22:12:32 2018 +0300 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Thu Jun 14 20:07:38 2018 -0400 |
tree | dc24bf35b539ea641b700344820c84462751bfd7 | |
parent | 94aefd32f431a2c15f9d2c5f8f19dece73a77b52 [diff] |
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: Avi Kivity <avi@scylladb.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>