/* A data_ready event on a listening socket means there's a connection pending. Do not use state_change as a substitute for it.  */
static void svc_tcp_listen_data_ready(struct sock *sk, int count_unused)
/* A data_ready event on a listening socket means there's a connection pending. Do not use state_change as a substitute for it.  */
static void svc_tcp_listen_data_ready(struct sock *sk, int count_unused)
{
	struct svc_sock	*svsk = (struct svc_sock *)sk->sk_user_data;
	dprintk("svc: socket %p TCP (listen) state change %d\n",
		sk, sk->sk_state);
	if (sk->sk_state == TCP_LISTEN) {
		if (svsk) {
			set_bit(XPT_CONN, &svsk->sk_xprt.xpt_flags);
			svc_xprt_enqueue(&svsk->sk_xprt);
		} else
			printk("svc: socket %p: no user data\n", sk);
	}
	if (sk->sk_sleep && waitqueue_active(sk->sk_sleep))
		wake_up_interruptible_all(sk->sk_sleep);
}