Skip to content

Commit

Permalink
nfs41: Initialize new rpc_xprt callback related fields
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Labiaga <ricardo.labiaga@netapp.com>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
  • Loading branch information
labiaga authored and Benny Halevy committed Jun 17, 2009
1 parent 56632b5 commit f9acac1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions net/sunrpc/xprt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,11 @@ struct rpc_xprt *xprt_create_transport(struct xprt_create *args)

INIT_LIST_HEAD(&xprt->free);
INIT_LIST_HEAD(&xprt->recv);
#if defined(CONFIG_NFS_V4_1)
spin_lock_init(&xprt->bc_pa_lock);
INIT_LIST_HEAD(&xprt->bc_pa_list);
#endif /* CONFIG_NFS_V4_1 */

INIT_WORK(&xprt->task_cleanup, xprt_autoclose);
setup_timer(&xprt->timer, xprt_init_autodisconnect,
(unsigned long)xprt);
Expand Down

0 comments on commit f9acac1

Please sign in to comment.