/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_waitqueue_head(&tbl->slot_waitq); in nfs4_init_slot_table() 32 init_completion(&tbl->complete); in nfs4_init_slot_table() 38 static void nfs4_shrink_slot_table(struct nfs4_slot_table *tbl, u32 newsize) in nfs4_shrink_slot_table() argument 41 if (newsize >= tbl->max_slots) in nfs4_shrink_slot_table() 44 p = &tbl->slots; in nfs4_shrink_slot_table() 52 tbl->max_slots--; in nfs4_shrink_slot_table() [all …]
|
D | nfs4session.h | 80 extern int nfs4_setup_slot_table(struct nfs4_slot_table *tbl, 82 extern void nfs4_shutdown_slot_table(struct nfs4_slot_table *tbl); 83 extern struct nfs4_slot *nfs4_alloc_slot(struct nfs4_slot_table *tbl); 84 extern struct nfs4_slot *nfs4_lookup_slot(struct nfs4_slot_table *tbl, u32 slotid); 85 extern int nfs4_slot_wait_on_seqid(struct nfs4_slot_table *tbl, 88 extern bool nfs4_try_to_lock_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot); 89 extern void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot); 90 extern void nfs4_slot_tbl_drain_complete(struct nfs4_slot_table *tbl); 91 bool nfs41_wake_and_assign_slot(struct nfs4_slot_table *tbl, 93 void nfs41_wake_slot_table(struct nfs4_slot_table *tbl); [all …]
|
D | callback_proc.c | 382 validate_seqid(const struct nfs4_slot_table *tbl, const struct nfs4_slot *slot, in validate_seqid() argument 388 if (args->csa_slotid > tbl->server_highest_slotid) in validate_seqid() 395 if (nfs4_test_locked_slot(tbl, slot->slot_nr)) in validate_seqid() 428 struct nfs4_slot_table *tbl; in referring_call_exists() local 437 tbl = &session->fc_slot_table; in referring_call_exists() 457 status = nfs4_slot_wait_on_seqid(tbl, ref->rc_slotid, in referring_call_exists() 472 struct nfs4_slot_table *tbl; in nfs4_callback_sequence() local 486 tbl = &clp->cl_session->bc_slot_table; in nfs4_callback_sequence() 494 spin_lock(&tbl->slot_tbl_lock); in nfs4_callback_sequence() 496 if (test_bit(NFS4_SLOT_TBL_DRAINING, &tbl->slot_tbl_state)) { in nfs4_callback_sequence() [all …]
|
D | nfs4state.c | 221 static void nfs4_end_drain_slot_table(struct nfs4_slot_table *tbl) in nfs4_end_drain_slot_table() argument 223 if (test_and_clear_bit(NFS4_SLOT_TBL_DRAINING, &tbl->slot_tbl_state)) { in nfs4_end_drain_slot_table() 224 spin_lock(&tbl->slot_tbl_lock); in nfs4_end_drain_slot_table() 225 nfs41_wake_slot_table(tbl); in nfs4_end_drain_slot_table() 226 spin_unlock(&tbl->slot_tbl_lock); in nfs4_end_drain_slot_table() 245 static int nfs4_drain_slot_tbl(struct nfs4_slot_table *tbl) in nfs4_drain_slot_tbl() argument 247 set_bit(NFS4_SLOT_TBL_DRAINING, &tbl->slot_tbl_state); in nfs4_drain_slot_tbl() 248 spin_lock(&tbl->slot_tbl_lock); in nfs4_drain_slot_tbl() 249 if (tbl->highest_used_slotid != NFS4_NO_SLOT) { in nfs4_drain_slot_tbl() 250 reinit_completion(&tbl->complete); in nfs4_drain_slot_tbl() [all …]
|
D | nfs4client.c | 278 struct nfs4_slot_table *tbl; in nfs40_init_client() local 281 tbl = kzalloc(sizeof(*tbl), GFP_NOFS); in nfs40_init_client() 282 if (tbl == NULL) in nfs40_init_client() 285 ret = nfs4_setup_slot_table(tbl, NFS4_MAX_SLOT_TABLE, in nfs40_init_client() 288 kfree(tbl); in nfs40_init_client() 292 clp->cl_slot_tbl = tbl; in nfs40_init_client()
|
D | callback_xdr.c | 813 struct nfs4_slot_table *tbl = &session->bc_slot_table; in nfs4_callback_free_slot() local 815 spin_lock(&tbl->slot_tbl_lock); in nfs4_callback_free_slot() 820 nfs4_free_slot(tbl, slot); in nfs4_callback_free_slot() 821 nfs4_slot_tbl_drain_complete(tbl); in nfs4_callback_free_slot() 822 spin_unlock(&tbl->slot_tbl_lock); in nfs4_callback_free_slot()
|
D | nfs4proc.c | 623 int nfs40_setup_sequence(struct nfs4_slot_table *tbl, in nfs40_setup_sequence() argument 634 spin_lock(&tbl->slot_tbl_lock); in nfs40_setup_sequence() 635 if (nfs4_slot_tbl_draining(tbl) && !args->sa_privileged) in nfs40_setup_sequence() 638 slot = nfs4_alloc_slot(tbl); in nfs40_setup_sequence() 644 spin_unlock(&tbl->slot_tbl_lock); in nfs40_setup_sequence() 656 rpc_sleep_on_priority(&tbl->slot_tbl_waitq, task, in nfs40_setup_sequence() 659 rpc_sleep_on(&tbl->slot_tbl_waitq, task, NULL); in nfs40_setup_sequence() 660 spin_unlock(&tbl->slot_tbl_lock); in nfs40_setup_sequence() 668 struct nfs4_slot_table *tbl; in nfs40_sequence_free_slot() local 670 tbl = slot->table; in nfs40_sequence_free_slot() [all …]
|
D | nfs4_fs.h | 469 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/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() 206 rpc_wake_up(&tbl->slot_tbl_waitq); in filelayout_async_handle_error()
|
/fs/nfs/flexfilelayout/ |
D | flexfilelayout.c | 1075 struct nfs4_slot_table *tbl = &clp->cl_session->fc_slot_table; in ff_layout_async_handle_error_v4() local 1134 rpc_wake_up(&tbl->slot_tbl_waitq); in ff_layout_async_handle_error_v4() 1147 rpc_wake_up(&tbl->slot_tbl_waitq); in ff_layout_async_handle_error_v4()
|
/fs/nfsd/ |
D | nfs4state.c | 2239 find_client_in_id_table(struct list_head *tbl, clientid_t *clid, bool sessions) in find_client_in_id_table() argument 2244 list_for_each_entry(clp, &tbl[idhashval], cl_idhash) { in find_client_in_id_table() 2258 struct list_head *tbl = nn->conf_id_hashtbl; in find_confirmed_client() local 2261 return find_client_in_id_table(tbl, clid, sessions); in find_confirmed_client() 2267 struct list_head *tbl = nn->unconf_id_hashtbl; in find_unconfirmed_client() local 2270 return find_client_in_id_table(tbl, clid, sessions); in find_unconfirmed_client()
|