/fs/nfs/ |
D | nfs4session.c | 26 static void nfs4_init_slot_table(struct nfs4_slot_table *tbl, const char *queue) in nfs4_init_slot_table() argument 28 tbl->highest_used_slotid = NFS4_NO_SLOT; in nfs4_init_slot_table() 29 spin_lock_init(&tbl->slot_tbl_lock); in nfs4_init_slot_table() 30 rpc_init_priority_wait_queue(&tbl->slot_tbl_waitq, queue); in nfs4_init_slot_table() 31 init_completion(&tbl->complete); in nfs4_init_slot_table() 37 static void nfs4_shrink_slot_table(struct nfs4_slot_table *tbl, u32 newsize) in nfs4_shrink_slot_table() argument 40 if (newsize >= tbl->max_slots) in nfs4_shrink_slot_table() 43 p = &tbl->slots; in nfs4_shrink_slot_table() 51 tbl->max_slots--; in nfs4_shrink_slot_table() 60 void nfs4_slot_tbl_drain_complete(struct nfs4_slot_table *tbl) in nfs4_slot_tbl_drain_complete() argument [all …]
|
D | nfs4session.h | 76 extern int nfs4_setup_slot_table(struct nfs4_slot_table *tbl, 78 extern void nfs4_shutdown_slot_table(struct nfs4_slot_table *tbl); 79 extern struct nfs4_slot *nfs4_alloc_slot(struct nfs4_slot_table *tbl); 80 extern void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot); 81 extern void nfs4_slot_tbl_drain_complete(struct nfs4_slot_table *tbl); 82 bool nfs41_wake_and_assign_slot(struct nfs4_slot_table *tbl, 84 void nfs41_wake_slot_table(struct nfs4_slot_table *tbl); 86 static inline bool nfs4_slot_tbl_draining(struct nfs4_slot_table *tbl) in nfs4_slot_tbl_draining() argument 88 return !!test_bit(NFS4_SLOT_TBL_DRAINING, &tbl->slot_tbl_state); in nfs4_slot_tbl_draining() 92 extern void nfs41_set_target_slotid(struct nfs4_slot_table *tbl, [all …]
|
D | callback_proc.c | 319 validate_seqid(struct nfs4_slot_table *tbl, struct cb_sequenceargs * args) in validate_seqid() argument 329 slot = tbl->slots + args->csa_slotid; in validate_seqid() 358 tbl->highest_used_slotid = args->csa_slotid; in validate_seqid() 374 struct nfs4_slot_table *tbl; in referring_call_exists() local 383 tbl = &session->fc_slot_table; in referring_call_exists() 403 spin_lock(&tbl->slot_tbl_lock); in referring_call_exists() 404 status = (test_bit(ref->rc_slotid, tbl->used_slots) && in referring_call_exists() 405 tbl->slots[ref->rc_slotid].seq_nr == in referring_call_exists() 407 spin_unlock(&tbl->slot_tbl_lock); in referring_call_exists() 421 struct nfs4_slot_table *tbl; in nfs4_callback_sequence() local [all …]
|
D | nfs4client.c | 275 struct nfs4_slot_table *tbl; in nfs40_init_client() local 278 tbl = kzalloc(sizeof(*tbl), GFP_NOFS); in nfs40_init_client() 279 if (tbl == NULL) in nfs40_init_client() 282 ret = nfs4_setup_slot_table(tbl, NFS4_MAX_SLOT_TABLE, in nfs40_init_client() 285 kfree(tbl); in nfs40_init_client() 289 clp->cl_slot_tbl = tbl; in nfs40_init_client()
|
D | nfs4state.c | 222 static void nfs4_end_drain_slot_table(struct nfs4_slot_table *tbl) in nfs4_end_drain_slot_table() argument 224 if (test_and_clear_bit(NFS4_SLOT_TBL_DRAINING, &tbl->slot_tbl_state)) { in nfs4_end_drain_slot_table() 225 spin_lock(&tbl->slot_tbl_lock); in nfs4_end_drain_slot_table() 226 nfs41_wake_slot_table(tbl); in nfs4_end_drain_slot_table() 227 spin_unlock(&tbl->slot_tbl_lock); in nfs4_end_drain_slot_table() 246 static int nfs4_drain_slot_tbl(struct nfs4_slot_table *tbl) in nfs4_drain_slot_tbl() argument 248 set_bit(NFS4_SLOT_TBL_DRAINING, &tbl->slot_tbl_state); in nfs4_drain_slot_tbl() 249 spin_lock(&tbl->slot_tbl_lock); in nfs4_drain_slot_tbl() 250 if (tbl->highest_used_slotid != NFS4_NO_SLOT) { in nfs4_drain_slot_tbl() 251 reinit_completion(&tbl->complete); in nfs4_drain_slot_tbl() [all …]
|
D | callback_xdr.c | 757 struct nfs4_slot_table *tbl = &session->bc_slot_table; in nfs4_callback_free_slot() local 759 spin_lock(&tbl->slot_tbl_lock); in nfs4_callback_free_slot() 764 tbl->highest_used_slotid = NFS4_NO_SLOT; in nfs4_callback_free_slot() 765 nfs4_slot_tbl_drain_complete(tbl); in nfs4_callback_free_slot() 766 spin_unlock(&tbl->slot_tbl_lock); in nfs4_callback_free_slot()
|
D | nfs4proc.c | 566 int nfs40_setup_sequence(struct nfs4_slot_table *tbl, in nfs40_setup_sequence() argument 577 spin_lock(&tbl->slot_tbl_lock); in nfs40_setup_sequence() 578 if (nfs4_slot_tbl_draining(tbl) && !args->sa_privileged) in nfs40_setup_sequence() 581 slot = nfs4_alloc_slot(tbl); in nfs40_setup_sequence() 587 spin_unlock(&tbl->slot_tbl_lock); in nfs40_setup_sequence() 598 rpc_sleep_on_priority(&tbl->slot_tbl_waitq, task, in nfs40_setup_sequence() 601 rpc_sleep_on(&tbl->slot_tbl_waitq, task, NULL); in nfs40_setup_sequence() 602 spin_unlock(&tbl->slot_tbl_lock); in nfs40_setup_sequence() 611 struct nfs4_slot_table *tbl; in nfs40_sequence_done() local 616 tbl = slot->table; in nfs40_sequence_done() [all …]
|
D | nfs4_fs.h | 451 extern int nfs40_setup_sequence(struct nfs4_slot_table *tbl,
|
/fs/cifs/ |
D | winucase.c | 643 const wchar_t *tbl; in cifs_toupper() local 650 tbl = toplevel[idx]; in cifs_toupper() 651 if (!tbl) in cifs_toupper() 658 out = tbl[idx]; in cifs_toupper()
|
/fs/gfs2/ |
D | glock.c | 1438 const struct bucket_table *tbl; in glock_hash_walk() local 1442 tbl = rht_dereference_rcu(gl_hash_table.tbl, &gl_hash_table); in glock_hash_walk() 1443 for (i = 0; i < tbl->size; i++) { in glock_hash_walk() 1444 rht_for_each_entry_safe(gl, pos, next, tbl, i, gl_node) { in glock_hash_walk()
|
/fs/nfs/filelayout/ |
D | filelayout.c | 132 struct nfs4_slot_table *tbl = &clp->cl_session->fc_slot_table; in filelayout_async_handle_error() local 191 rpc_wake_up(&tbl->slot_tbl_waitq); in filelayout_async_handle_error() 205 rpc_wake_up(&tbl->slot_tbl_waitq); in filelayout_async_handle_error()
|
/fs/nfs/flexfilelayout/ |
D | flexfilelayout.c | 997 struct nfs4_slot_table *tbl = &clp->cl_session->fc_slot_table; in ff_layout_async_handle_error_v4() local 1059 rpc_wake_up(&tbl->slot_tbl_waitq); in ff_layout_async_handle_error_v4() 1072 rpc_wake_up(&tbl->slot_tbl_waitq); in ff_layout_async_handle_error_v4()
|
/fs/nfsd/ |
D | nfs4state.c | 2113 find_client_in_id_table(struct list_head *tbl, clientid_t *clid, bool sessions) in find_client_in_id_table() argument 2118 list_for_each_entry(clp, &tbl[idhashval], cl_idhash) { in find_client_in_id_table() 2132 struct list_head *tbl = nn->conf_id_hashtbl; in find_confirmed_client() local 2135 return find_client_in_id_table(tbl, clid, sessions); in find_confirmed_client() 2141 struct list_head *tbl = nn->unconf_id_hashtbl; in find_unconfirmed_client() local 2144 return find_client_in_id_table(tbl, clid, sessions); in find_unconfirmed_client()
|