commit | 7594bf37ae9ffc434da425120c576909eb33b0bc | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sun Jul 16 22:53:08 2017 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Tue Nov 28 11:07:13 2017 -0500 |
tree | ccbb8b447e97b56420e383961a5842f2c4547875 | |
parent | 5dc533c66b131726a1a747eb3c92b20a9ede9219 [diff] |
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>