Home
last modified time | relevance | path

Searched refs:session (Results 1 – 25 of 37) sorted by relevance

12

/fs/ceph/
Dmds_client.c54 struct ceph_mds_session *session; member
1149 mds = cap->session->s_mds; in __choose_mds()
1378 struct ceph_mds_session *session) in __open_session() argument
1382 int mds = session->s_mds; in __open_session()
1388 session->s_state = CEPH_MDS_SESSION_OPENING; in __open_session()
1389 session->s_renew_requested = jiffies; in __open_session()
1392 msg = create_session_open_msg(mdsc, session->s_seq); in __open_session()
1395 ceph_con_send(&session->s_con, msg); in __open_session()
1407 struct ceph_mds_session *session; in __open_export_target_session() local
1410 session = __ceph_lookup_mds_session(mdsc, target); in __open_export_target_session()
[all …]
Dcaps.c47 struct ceph_mds_session *session,
606 struct ceph_mds_session *session) in change_auth_cap_ses() argument
613 spin_lock(&session->s_mdsc->cap_dirty_lock); in change_auth_cap_ses()
615 list_move(&ci->i_dirty_item, &session->s_cap_dirty); in change_auth_cap_ses()
617 list_move_tail(&ci->i_flushing_item, &session->s_cap_flushing); in change_auth_cap_ses()
618 spin_unlock(&session->s_mdsc->cap_dirty_lock); in change_auth_cap_ses()
631 struct ceph_mds_session *session, u64 cap_id, in ceph_add_cap() argument
639 int mds = session->s_mds; in ceph_add_cap()
646 session->s_mds, cap_id, ceph_cap_string(issued), seq); in ceph_add_cap()
648 gen = atomic_read(&session->s_cap_gen); in ceph_add_cap()
[all …]
Ddebugfs.c246 cap->session->s_mds, in caps_show_cb()
271 struct ceph_mds_session *session; in caps_show() local
273 session = __ceph_lookup_mds_session(mdsc, i); in caps_show()
274 if (!session) in caps_show()
277 mutex_lock(&session->s_mutex); in caps_show()
278 ceph_iterate_session_caps(session, caps_show_cb, s); in caps_show()
279 mutex_unlock(&session->s_mutex); in caps_show()
280 ceph_put_mds_session(session); in caps_show()
318 struct ceph_mds_session *session = in mds_sessions_show() local
320 if (!session) { in mds_sessions_show()
[all …]
Dmds_client.h529 extern void __ceph_queue_cap_release(struct ceph_mds_session *session,
532 struct ceph_mds_session *session);
535 extern int ceph_iterate_session_caps(struct ceph_mds_session *session,
551 extern void ceph_mdsc_lease_send_msg(struct ceph_mds_session *session,
563 struct ceph_mds_session *session);
566 struct ceph_mds_session *session,
577 extern u64 ceph_get_deleg_ino(struct ceph_mds_session *session);
578 extern int ceph_restore_deleg_ino(struct ceph_mds_session *session, u64 ino);
Dmetric.c189 mdsc->metric.session = s; in metric_get_session()
208 if (!m->session || !check_session_state(m->session)) { in metric_delayed_work()
209 if (m->session) { in metric_delayed_work()
210 ceph_put_mds_session(m->session); in metric_delayed_work()
211 m->session = NULL; in metric_delayed_work()
215 if (m->session) { in metric_delayed_work()
216 ceph_mdsc_send_metrics(mdsc, m->session); in metric_delayed_work()
281 m->session = NULL; in ceph_metric_init()
314 ceph_put_mds_session(m->session); in ceph_metric_destroy()
Dsuper.h155 struct ceph_mds_session *session; member
929 struct ceph_mds_session *session,
976 struct ceph_mds_session *session, int cap_fmode,
981 struct ceph_mds_session *session);
1127 extern void ceph_handle_caps(struct ceph_mds_session *session,
1132 struct ceph_mds_session *session, u64 cap_id,
1147 struct ceph_mds_session *session);
1149 struct ceph_mds_session *session);
1150 void ceph_kick_flushing_inode_caps(struct ceph_mds_session *session,
1173 struct ceph_mds_session *session);
[all …]
Dinode.c755 struct ceph_mds_session *session, int cap_fmode, in ceph_fill_inode() argument
1012 ceph_add_cap(inode, session, in ceph_fill_inode()
1094 struct ceph_mds_session *session, in __update_dentry_lease() argument
1122 if (di->lease_gen == atomic_read(&session->s_cap_gen) && in __update_dentry_lease()
1126 if (di->lease_session && di->lease_session != session) { in __update_dentry_lease()
1132 di->lease_session = ceph_get_mds_session(session); in __update_dentry_lease()
1133 di->lease_gen = atomic_read(&session->s_cap_gen); in __update_dentry_lease()
1144 struct ceph_mds_session *session, in update_dentry_lease() argument
1149 __update_dentry_lease(dir, dentry, lease, session, from_time, in update_dentry_lease()
1160 struct ceph_mds_session *session, in update_dentry_lease_careful() argument
[all …]
Dquota.c38 struct ceph_mds_session *session, in ceph_handle_quota() argument
49 session->s_mds, (int)msg->front.iov_len); in ceph_handle_quota()
55 mutex_lock(&session->s_mutex); in ceph_handle_quota()
56 inc_session_sequence(session); in ceph_handle_quota()
57 mutex_unlock(&session->s_mutex); in ceph_handle_quota()
Dsnap.c845 struct ceph_mds_session *session = NULL; in flush_snaps() local
855 ceph_flush_snaps(ci, &session); in flush_snaps()
861 ceph_put_mds_session(session); in flush_snaps()
915 struct ceph_mds_session *session, in ceph_handle_snap() argument
919 int mds = session->s_mds; in ceph_handle_snap()
947 mutex_lock(&session->s_mutex); in ceph_handle_snap()
948 inc_session_sequence(session); in ceph_handle_snap()
949 mutex_unlock(&session->s_mutex); in ceph_handle_snap()
Ddir.c1558 struct ceph_mds_session *session; in __dentry_lease_is_valid() local
1563 session = di->lease_session; in __dentry_lease_is_valid()
1564 if (session) { in __dentry_lease_is_valid()
1568 gen = atomic_read(&session->s_cap_gen); in __dentry_lease_is_valid()
1569 ttl = session->s_cap_ttl; in __dentry_lease_is_valid()
1583 struct ceph_mds_session *session = NULL; in dentry_lease_is_valid() local
1602 session = ceph_get_mds_session(di->lease_session); in dentry_lease_is_valid()
1611 if (session) { in dentry_lease_is_valid()
1612 ceph_mdsc_lease_send_msg(session, dentry, in dentry_lease_is_valid()
1614 ceph_put_mds_session(session); in dentry_lease_is_valid()
Dmetric.h172 struct ceph_mds_session *session; member
/fs/nfs/
Dnfs4session.c523 static void nfs4_release_session_slot_tables(struct nfs4_session *session) in nfs4_release_session_slot_tables() argument
525 nfs4_release_slot_table(&session->fc_slot_table); in nfs4_release_session_slot_tables()
526 nfs4_release_slot_table(&session->bc_slot_table); in nfs4_release_session_slot_tables()
540 tbl->session = ses; in nfs4_setup_session_slot_tables()
546 tbl->session = ses; in nfs4_setup_session_slot_tables()
557 struct nfs4_session *session; in nfs4_alloc_session() local
559 session = kzalloc(sizeof(struct nfs4_session), GFP_NOFS); in nfs4_alloc_session()
560 if (!session) in nfs4_alloc_session()
563 nfs4_init_slot_table(&session->fc_slot_table, "ForeChannel Slot table"); in nfs4_alloc_session()
564 nfs4_init_slot_table(&session->bc_slot_table, "BackChannel Slot table"); in nfs4_alloc_session()
[all …]
Dnfs4session.h39 struct nfs4_session *session; /* Parent session */ member
123 extern void nfs4_destroy_session(struct nfs4_session *session);
158 #define nfs_session_id_hash(session) (0) argument
180 #define nfs_session_id_hash(session) (0) argument
Dnfs4trace.h417 const struct nfs4_session *session,
420 TP_ARGS(session, res),
423 __field(unsigned int, session)
434 __entry->session = nfs_session_id_hash(&session->sess_id);
450 __entry->session,
472 __field(unsigned int, session)
481 __entry->session = nfs_session_id_hash(&args->csa_sessionid);
494 __entry->session,
509 __field(unsigned int, session)
518 __entry->session = nfs_session_id_hash(&args->csa_sessionid);
[all …]
Dcallback_proc.c454 struct nfs4_session *session; in referring_call_exists() local
463 session = clp->cl_session; in referring_call_exists()
464 tbl = &session->fc_slot_table; in referring_call_exists()
468 if (memcmp(session->sess_id.data, in referring_call_exists()
Dnfs4proc.c748 struct nfs4_session *session; in nfs41_release_slot() local
755 session = tbl->session; in nfs41_release_slot()
780 nfs41_notify_server(session->clp); in nfs41_release_slot()
814 struct nfs4_session *session; in nfs41_sequence_process() local
826 session = slot->table->session; in nfs41_sequence_process()
827 clp = session->clp; in nfs41_sequence_process()
829 trace_nfs4_sequence_done(session, res); in nfs41_sequence_process()
928 set_bit(NFS4_SLOT_TBL_DRAINING, &session->fc_slot_table.slot_tbl_state); in nfs41_sequence_process()
929 nfs4_schedule_session_recovery(session, status); in nfs41_sequence_process()
964 if (res->sr_slot->table->session != NULL) in nfs4_sequence_process()
[all …]
Dnfs4client.c370 struct nfs4_session *session = NULL; in nfs41_init_client() local
377 session = nfs4_alloc_session(clp); in nfs41_init_client()
378 if (!session) in nfs41_init_client()
381 clp->cl_session = session; in nfs41_init_client()
Dnfs4xdr.c1896 const struct nfs4_session *session, in encode_destroy_session() argument
1900 encode_opaque_fixed(xdr, session->sess_id.data, NFS4_MAX_SESSIONID_LEN); in encode_destroy_session()
1925 struct nfs4_session *session; in encode_sequence() local
1931 session = tp->session; in encode_sequence()
1932 if (!session) in encode_sequence()
1943 ((u32 *)session->sess_id.data)[0], in encode_sequence()
1944 ((u32 *)session->sess_id.data)[1], in encode_sequence()
1945 ((u32 *)session->sess_id.data)[2], in encode_sequence()
1946 ((u32 *)session->sess_id.data)[3], in encode_sequence()
1950 p = xdr_encode_opaque_fixed(p, session->sess_id.data, NFS4_MAX_SESSIONID_LEN); in encode_sequence()
[all …]
/fs/hfsplus/
Doptions.c60 opts->session = -1; in hfsplus_fill_defaults()
167 if (match_int(&args[0], &sbi->session)) { in hfsplus_parse_options()
234 if (sbi->session >= 0) in hfsplus_show_options()
235 seq_printf(seq, ",session=%u", sbi->session); in hfsplus_show_options()
Dwrapper.c136 if (HFSPLUS_SB(sb)->session >= 0) { in hfsplus_get_last_session()
142 te.cdte_track = HFSPLUS_SB(sb)->session; in hfsplus_get_last_session()
/fs/nfsd/
Dnfs4callback.c150 const struct nfsd4_session *session) in encode_sessionid4() argument
155 xdr_encode_opaque_fixed(p, session->se_sessionid.data, in encode_sessionid4()
347 struct nfsd4_session *session = cb->cb_clp->cl_cb_session; in encode_cb_sequence4args() local
354 encode_sessionid4(xdr, session); in encode_cb_sequence4args()
357 *p++ = cpu_to_be32(session->se_cb_seq_nr); /* csa_sequenceid */ in encode_cb_sequence4args()
390 struct nfsd4_session *session = cb->cb_clp->cl_cb_session; in decode_cb_sequence4resok() local
403 if (memcmp(p, session->se_sessionid.data, NFS4_MAX_SESSIONID_LEN)) { in decode_cb_sequence4resok()
410 if (dummy != session->se_cb_seq_nr) { in decode_cb_sequence4resok()
1092 struct nfsd4_session *session = clp->cl_cb_session; in nfsd4_cb_sequence_done() local
1123 ++session->se_cb_seq_nr; in nfsd4_cb_sequence_done()
[all …]
Dnfs4state.c1931 struct nfsd4_session *session; in find_in_sessionid_hashtbl() local
1934 session = __find_in_sessionid_hashtbl(sessionid, net); in find_in_sessionid_hashtbl()
1935 if (!session) in find_in_sessionid_hashtbl()
1937 status = nfsd4_get_session_locked(session); in find_in_sessionid_hashtbl()
1939 session = NULL; in find_in_sessionid_hashtbl()
1942 return session; in find_in_sessionid_hashtbl()
3565 struct nfsd4_session *session = cstate->session; in nfsd4_backchannel_ctl() local
3573 session->se_cb_prog = bc->bc_cb_program; in nfsd4_backchannel_ctl()
3574 session->se_cb_sec = bc->bc_cb_sec; in nfsd4_backchannel_ctl()
3577 nfsd4_probe_callback(session->se_client); in nfsd4_backchannel_ctl()
[all …]
/fs/hfs/
Dsuper.c151 if (sbi->session >= 0) in hfs_show_options()
152 seq_printf(seq, ",session=%u", sbi->session); in hfs_show_options()
238 hsb->session = -1; in parse_options()
300 if (match_int(&args[0], &hsb->session)) { in parse_options()
Dmdb.c41 if (HFS_SB(sb)->session >= 0) { in hfs_get_last_session()
47 te.cdte_track = HFS_SB(sb)->session; in hfs_get_last_session()
/fs/isofs/
Dinode.c167 s32 session; member
359 popt->session=-1; in parse_options()
423 popt->session = n + 1; in parse_options()
547 static unsigned int isofs_get_last_session(struct super_block *sb, s32 session) in isofs_get_last_session() argument
552 if (session > 0) { in isofs_get_last_session()
558 te.cdte_track = session; in isofs_get_last_session()
562 session, te.cdte_addr.lba, in isofs_get_last_session()
661 sbi->s_session = opt.session; in isofs_fill_super()
665 opt.sbsector : isofs_get_last_session(s,opt.session); in isofs_fill_super()

12