diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-07-17 04:53:08 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-11-28 17:07:13 +0100 |
commit | 7594bf37ae9ffc434da425120c576909eb33b0bc (patch) | |
tree | ccbb8b447e97b56420e383961a5842f2c4547875 /fs/select.c | |
parent | ->si_band gets POLL... bitmap stored into a user-visible long field (diff) | |
download | linux-7594bf37ae9ffc434da425120c576909eb33b0bc.tar.xz linux-7594bf37ae9ffc434da425120c576909eb33b0bc.zip |
9p: untangle ->poll() mess
First of all, NULL ->poll() means "always POLLIN, always POLLOUT", not an error.
Furthermore, mixing -EREMOTEIO with POLL... masks and expecting it to do anything
good is insane - both are arch-dependent, to start with. Pass a pointer to
store the error value separately and make it return POLLERR in such case.
And ->poll() calling conventions do *not* include "return -Esomething". Never
had.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/select.c')
0 files changed, 0 insertions, 0 deletions