/* xs_error_report - callback mainly for catching socket errors @sk: socket  */
static void xs_error_report(struct sock *sk)
/* xs_error_report - callback mainly for catching socket errors @sk: socket  */
static void xs_error_report(struct sock *sk)
{
	struct rpc_xprt *xprt;
	read_lock(&sk->sk_callback_lock);
	if (!(xprt = xprt_from_sock(sk)))
		goto out;
	dprintk("RPC:       %s client %p...\n"
			"RPC:       error %d\n",
			__func__, xprt, sk->sk_err);
	xprt_wake_pending_tasks(xprt, -EAGAIN);
out:
	read_unlock(&sk->sk_callback_lock);
}