diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2005-08-23 21:52:58 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 16:05:32 -0700 |
commit | dc40c7bc76054f5e4382835ca2bafb895b993a8a (patch) | |
tree | 70951f8d97dc191df3c772c830b667ad7af6dfd9 /net | |
parent | 2babe1f6fea717c36c008c878fe095d1ca5696c1 (diff) | |
download | linux-stable-dc40c7bc76054f5e4382835ca2bafb895b993a8a.tar.gz linux-stable-dc40c7bc76054f5e4382835ca2bafb895b993a8a.tar.bz2 linux-stable-dc40c7bc76054f5e4382835ca2bafb895b993a8a.zip |
[ICSK]: Generalise tcp_listen_poll
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/tcp.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 02848e72e9c1..68626de6d69c 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -310,15 +310,6 @@ void tcp_enter_memory_pressure(void) EXPORT_SYMBOL(tcp_enter_memory_pressure); /* - * LISTEN is a special case for poll.. - */ -static __inline__ unsigned int tcp_listen_poll(struct sock *sk, - poll_table *wait) -{ - return !reqsk_queue_empty(&inet_csk(sk)->icsk_accept_queue) ? (POLLIN | POLLRDNORM) : 0; -} - -/* * Wait for a TCP event. * * Note that we don't need to lock the socket, as the upper poll layers @@ -333,7 +324,7 @@ unsigned int tcp_poll(struct file *file, struct socket *sock, poll_table *wait) poll_wait(file, sk->sk_sleep, wait); if (sk->sk_state == TCP_LISTEN) - return tcp_listen_poll(sk, wait); + return inet_csk_listen_poll(sk); /* Socket is not locked. We are protected from async events by poll logic and correct handling of state changes |