Skip to content
Commit 2739b807 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Al Viro
Browse files

aio: only return events requested in poll_mask() for IOCB_CMD_POLL



The ->poll_mask() operation has a mask of events that the caller
is interested in, but not all implementations might take it into
account.  Mask the return value to only the requested events,
similar to what the poll and epoll code does.

Reported-by: default avatarAvi Kivity <avi@scylladb.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 4d572d9f
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