Lines Matching defs:session
523 static void nfs4_release_session_slot_tables(struct nfs4_session *session)
525 nfs4_release_slot_table(&session->fc_slot_table);
526 nfs4_release_slot_table(&session->bc_slot_table);
540 tbl->session = ses;
546 tbl->session = ses;
557 struct nfs4_session *session;
559 session = kzalloc(sizeof(struct nfs4_session), GFP_NOFS);
560 if (!session)
563 nfs4_init_slot_table(&session->fc_slot_table, "ForeChannel Slot table");
564 nfs4_init_slot_table(&session->bc_slot_table, "BackChannel Slot table");
565 session->session_state = 1<<NFS4_SESSION_INITING;
567 session->clp = clp;
568 return session;
571 static void nfs4_destroy_session_slot_tables(struct nfs4_session *session)
573 nfs4_shutdown_slot_table(&session->fc_slot_table);
574 nfs4_shutdown_slot_table(&session->bc_slot_table);
577 void nfs4_destroy_session(struct nfs4_session *session)
582 cred = nfs4_get_clid_cred(session->clp);
583 nfs4_proc_destroy_session(session, cred);
587 xprt = rcu_dereference(session->clp->cl_rpcclient->cl_xprt);
592 nfs4_destroy_session_slot_tables(session);
593 kfree(session);
629 struct nfs4_session *session = clp->cl_session;
633 if (test_and_clear_bit(NFS4_SESSION_INITING, &session->session_state)) {