OSDN Git Service

9p: untangle ->poll() mess
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 17 Jul 2017 02:53:08 +0000 (22:53 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 28 Nov 2017 16:07:13 +0000 (11:07 -0500)
commit7594bf37ae9ffc434da425120c576909eb33b0bc
treeccbb8b447e97b56420e383961a5842f2c4547875
parent5dc533c66b131726a1a747eb3c92b20a9ede9219
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>
net/9p/trans_fd.c