summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-12-31 16:41:08 +0100
committerChristoph Hellwig <hch@lst.de>2018-05-26 09:16:44 +0200
commit5001c2dcdf17bb45d8a2c9f084e46e0e96e46939 (patch)
treeb365d79dcc1d6df07ab649b74598fcdf14b14b80
parentf87be8948185a4f1085aea38bccd0d2ce07f711c (diff)
downloadlinux-stable-5001c2dcdf17bb45d8a2c9f084e46e0e96e46939.tar.gz
linux-stable-5001c2dcdf17bb45d8a2c9f084e46e0e96e46939.tar.bz2
linux-stable-5001c2dcdf17bb45d8a2c9f084e46e0e96e46939.zip
net/rxrpc: convert to ->poll_mask
Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--net/rxrpc/af_rxrpc.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c
index 9a2c8e7c000e..6b170f2e47f2 100644
--- a/net/rxrpc/af_rxrpc.c
+++ b/net/rxrpc/af_rxrpc.c
@@ -734,15 +734,11 @@ static int rxrpc_getsockopt(struct socket *sock, int level, int optname,
/*
* permit an RxRPC socket to be polled
*/
-static __poll_t rxrpc_poll(struct file *file, struct socket *sock,
- poll_table *wait)
+static __poll_t rxrpc_poll_mask(struct socket *sock, __poll_t events)
{
struct sock *sk = sock->sk;
struct rxrpc_sock *rx = rxrpc_sk(sk);
- __poll_t mask;
-
- sock_poll_wait(file, sk_sleep(sk), wait);
- mask = 0;
+ __poll_t mask = 0;
/* the socket is readable if there are any messages waiting on the Rx
* queue */
@@ -949,7 +945,7 @@ static const struct proto_ops rxrpc_rpc_ops = {
.socketpair = sock_no_socketpair,
.accept = sock_no_accept,
.getname = sock_no_getname,
- .poll = rxrpc_poll,
+ .poll_mask = rxrpc_poll_mask,
.ioctl = sock_no_ioctl,
.listen = rxrpc_listen,
.shutdown = rxrpc_shutdown,