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
File Mode Size
Kconfig -rw-r--r-- 1.0 KB
Makefile -rw-r--r-- 166 bytes
bitmap.c -rw-r--r-- 6.6 KB
dir.c -rw-r--r-- 10.9 KB
file.c -rw-r--r-- 1.1 KB
inode.c -rw-r--r-- 18.2 KB
itree_common.c -rw-r--r-- 7.7 KB
itree_v1.c -rw-r--r-- 1.4 KB
itree_v2.c -rw-r--r-- 1.9 KB
minix.h -rw-r--r-- 5.2 KB
namei.c -rw-r--r-- 5.5 KB

back to top