Lines Matching defs:session
527 static void nfs4_release_session_slot_tables(struct nfs4_session *session)
529 nfs4_release_slot_table(&session->fc_slot_table);
530 nfs4_release_slot_table(&session->bc_slot_table);
544 tbl->session = ses;
550 tbl->session = ses;
561 struct nfs4_session *session;
563 session = kzalloc(sizeof(struct nfs4_session), GFP_NOFS);
564 if (!session)
567 nfs4_init_slot_table(&session->fc_slot_table, "ForeChannel Slot table");
568 nfs4_init_slot_table(&session->bc_slot_table, "BackChannel Slot table");
569 session->session_state = 1<<NFS4_SESSION_INITING;
571 session->clp = clp;
572 return session;
575 static void nfs4_destroy_session_slot_tables(struct nfs4_session *session)
577 nfs4_shutdown_slot_table(&session->fc_slot_table);
578 nfs4_shutdown_slot_table(&session->bc_slot_table);
581 void nfs4_destroy_session(struct nfs4_session *session)
586 cred = nfs4_get_clid_cred(session->clp);
587 nfs4_proc_destroy_session(session, cred);
591 xprt = rcu_dereference(session->clp->cl_rpcclient->cl_xprt);
596 nfs4_destroy_session_slot_tables(session);
597 kfree(session);
633 struct nfs4_session *session = clp->cl_session;
637 if (test_and_clear_bit(NFS4_SESSION_INITING, &session->session_state)) {