xprt.c (c99da91e7a12724127475a85cc7a38214b3504e2) xprt.c (b24b8a247ff65c01b252025926fe564209fae4fc)
1/*
2 * linux/net/sunrpc/xprt.c
3 *
4 * This is a generic RPC call interface supporting congestion avoidance,
5 * and asynchronous calls.
6 *
7 * The interface works like this:
8 *

--- 997 unchanged lines hidden (view full) ---

1006
1007 kref_init(&xprt->kref);
1008 spin_lock_init(&xprt->transport_lock);
1009 spin_lock_init(&xprt->reserve_lock);
1010
1011 INIT_LIST_HEAD(&xprt->free);
1012 INIT_LIST_HEAD(&xprt->recv);
1013 INIT_WORK(&xprt->task_cleanup, xprt_autoclose);
1/*
2 * linux/net/sunrpc/xprt.c
3 *
4 * This is a generic RPC call interface supporting congestion avoidance,
5 * and asynchronous calls.
6 *
7 * The interface works like this:
8 *

--- 997 unchanged lines hidden (view full) ---

1006
1007 kref_init(&xprt->kref);
1008 spin_lock_init(&xprt->transport_lock);
1009 spin_lock_init(&xprt->reserve_lock);
1010
1011 INIT_LIST_HEAD(&xprt->free);
1012 INIT_LIST_HEAD(&xprt->recv);
1013 INIT_WORK(&xprt->task_cleanup, xprt_autoclose);
1014 init_timer(&xprt->timer);
1015 xprt->timer.function = xprt_init_autodisconnect;
1016 xprt->timer.data = (unsigned long) xprt;
1014 setup_timer(&xprt->timer, xprt_init_autodisconnect,
1015 (unsigned long)xprt);
1017 xprt->last_used = jiffies;
1018 xprt->cwnd = RPC_INITCWND;
1019 xprt->bind_index = 0;
1020
1021 rpc_init_wait_queue(&xprt->binding, "xprt_binding");
1022 rpc_init_wait_queue(&xprt->pending, "xprt_pending");
1023 rpc_init_wait_queue(&xprt->sending, "xprt_sending");
1024 rpc_init_wait_queue(&xprt->resend, "xprt_resend");

--- 53 unchanged lines hidden ---
1016 xprt->last_used = jiffies;
1017 xprt->cwnd = RPC_INITCWND;
1018 xprt->bind_index = 0;
1019
1020 rpc_init_wait_queue(&xprt->binding, "xprt_binding");
1021 rpc_init_wait_queue(&xprt->pending, "xprt_pending");
1022 rpc_init_wait_queue(&xprt->sending, "xprt_sending");
1023 rpc_init_wait_queue(&xprt->resend, "xprt_resend");

--- 53 unchanged lines hidden ---