/* Dequeue the first transport. Must be called with the pool->sp_lock held.  */
static struct svc_xprt* svc_xprt_dequeue(struct svc_pool *pool)
/* Dequeue the first transport. Must be called with the pool->sp_lock held.  */
static struct svc_xprt* svc_xprt_dequeue(struct svc_pool *pool)
{
	struct svc_xprt	*xprt;
	if (list_empty(&pool->sp_sockets))
		return NULL;
	xprt = list_entry(pool->sp_sockets.next,
			  struct svc_xprt, xpt_ready);
	list_del_init(&xprt->xpt_ready);
	dprintk("svc: transport %p dequeued, inuse=%d\n",
		xprt, atomic_read(&xprt->xpt_ref.refcount));
	return xprt;
}