]> git.baikalelectronics.ru Git - kernel.git/commit
aio: only return events requested in poll_mask() for IOCB_CMD_POLL
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Jun 2018 06:50:10 +0000 (08:50 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 15 Jun 2018 00:08:14 +0000 (20:08 -0400)
commit32019007d5f0b4b1b88cce49da4004e42a334e4d
tree4899ac192af2bce266c588d717518434c5ad62e1
parent08a747ae2d4c8d486058b10876c5607bf62e19a9
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: Avi Kivity <avi@scylladb.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/aio.c