/* Called when more output buffer space is available for this socket. We try not to wake our writers until they can make "significant" progress, otherwise we'll waste resources thrashing kernel_sendmsg with a bunch of small requests.  */
static void xs_tcp_write_space(struct sock *sk)
/* Called when more output buffer space is available for this socket. We try not to wake our writers until they can make "significant" progress, otherwise we'll waste resources thrashing kernel_sendmsg with a bunch of small requests.  */
static void xs_tcp_write_space(struct sock *sk)
{
	read_lock(&sk->sk_callback_lock);
	if (sk_stream_wspace(sk) >= sk_stream_min_wspace(sk))
		xs_write_space(sk);
	read_unlock(&sk->sk_callback_lock);
}