Lines Matching refs:clp
37 if (!cps->clp) /* Always set for v4.0. Set in cb_sequence for v4.1 */
44 rpc_peeraddr2str(cps->clp->cl_rpcclient, RPC_DISPLAY_ADDR));
46 inode = nfs_delegation_find_inode(cps->clp, &args->fh);
50 trace_nfs4_cb_getattr(cps->clp, &args->fh, NULL,
71 trace_nfs4_cb_getattr(cps->clp, &args->fh, inode, -ntohl(res->status));
86 if (!cps->clp) /* Always set for v4.0. Set in cb_sequence for v4.1 */
90 rpc_peeraddr2str(cps->clp->cl_rpcclient, RPC_DISPLAY_ADDR));
93 inode = nfs_delegation_find_inode(cps->clp, &args->fh);
97 trace_nfs4_cb_recall(cps->clp, &args->fh, NULL,
112 trace_nfs4_cb_recall(cps->clp, &args->fh, inode,
127 static struct inode *nfs_layout_find_inode_by_stateid(struct nfs_client *clp,
136 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) {
163 static struct inode *nfs_layout_find_inode_by_fh(struct nfs_client *clp,
172 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) {
194 static struct inode *nfs_layout_find_inode(struct nfs_client *clp,
200 inode = nfs_layout_find_inode_by_stateid(clp, stateid);
202 inode = nfs_layout_find_inode_by_fh(clp, fh);
244 static u32 initiate_file_draining(struct nfs_client *clp,
252 ino = nfs_layout_find_inode(clp, &args->cbl_fh, &args->cbl_stateid);
309 trace_nfs4_cb_layoutrecall_file(clp, &args->cbl_fh, ino,
314 static u32 initiate_bulk_draining(struct nfs_client *clp,
320 stat = pnfs_destroy_layouts_byfsid(clp, &args->cbl_fsid, true);
322 stat = pnfs_destroy_layouts_byclid(clp, true);
328 static u32 do_callback_layoutrecall(struct nfs_client *clp,
332 return initiate_file_draining(clp, args);
333 return initiate_bulk_draining(clp, args);
342 if (cps->clp)
343 res = do_callback_layoutrecall(cps->clp, args);
347 static void pnfs_recall_all_layouts(struct nfs_client *clp)
355 do_callback_layoutrecall(clp, &args);
366 if (!cps->clp) {
380 nfs4_delete_deviceid(ld, cps->clp, &dev->cbd_dev_id);
445 static int referring_call_exists(struct nfs_client *clp,
463 session = clp->cl_session;
495 struct nfs_client *clp;
499 clp = nfs4_find_client_sessionid(cps->net, args->csa_addr,
501 if (clp == NULL)
504 if (!(clp->cl_session->flags & SESSION4_BACK_CHAN))
507 tbl = &clp->cl_session->bc_slot_table;
522 if (test_bit(NFS4CLNT_SESSION_RESET, &clp->cl_state))
555 if (referring_call_exists(clp, args->csa_nrclists, args->csa_rclists,
571 cps->clp = clp; /* put in nfs4_callback_compound */
601 if (!cps->clp) /* set in cb_sequence */
605 rpc_peeraddr2str(cps->clp->cl_rpcclient, RPC_DISPLAY_ADDR));
617 nfs_expire_unused_delegation_types(cps->clp, flags);
620 pnfs_recall_all_layouts(cps->clp);
623 set_bit(NFS4CLNT_RECALL_ANY_LAYOUT_READ, &cps->clp->cl_state);
627 set_bit(NFS4CLNT_RECALL_ANY_LAYOUT_RW, &cps->clp->cl_state);
631 nfs4_schedule_state_manager(cps->clp);
647 if (!cps->clp) /* set in cb_sequence */
651 rpc_peeraddr2str(cps->clp->cl_rpcclient, RPC_DISPLAY_ADDR),
654 fc_tbl = &cps->clp->cl_session->fc_slot_table;
659 nfs41_notify_server(cps->clp);
670 if (!cps->clp) /* set in cb_sequence */
674 rpc_peeraddr2str(cps->clp->cl_rpcclient, RPC_DISPLAY_ADDR));
678 __wake_up(&cps->clp->cl_lock_waitq, TASK_NORMAL, 0, args);
709 spin_lock(&cps->clp->cl_lock);
711 list_for_each_entry_rcu(server, &cps->clp->cl_superblocks,
729 list_add_tail(©->copies, &cps->clp->pending_cb_stateids);
732 spin_unlock(&cps->clp->cl_lock);