Lines Matching refs:clp

32 	if (!cps->clp) /* Always set for v4.0. Set in cb_sequence for v4.1 */
39 rpc_peeraddr2str(cps->clp->cl_rpcclient, RPC_DISPLAY_ADDR));
41 inode = nfs_delegation_find_inode(cps->clp, &args->fh);
45 trace_nfs4_cb_getattr(cps->clp, &args->fh, NULL,
66 trace_nfs4_cb_getattr(cps->clp, &args->fh, inode, -ntohl(res->status));
81 if (!cps->clp) /* Always set for v4.0. Set in cb_sequence for v4.1 */
85 rpc_peeraddr2str(cps->clp->cl_rpcclient, RPC_DISPLAY_ADDR));
88 inode = nfs_delegation_find_inode(cps->clp, &args->fh);
92 trace_nfs4_cb_recall(cps->clp, &args->fh, NULL,
107 trace_nfs4_cb_recall(cps->clp, &args->fh, inode,
122 static struct inode *nfs_layout_find_inode_by_stateid(struct nfs_client *clp,
131 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) {
158 static struct inode *nfs_layout_find_inode_by_fh(struct nfs_client *clp,
167 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) {
189 static struct inode *nfs_layout_find_inode(struct nfs_client *clp,
195 inode = nfs_layout_find_inode_by_stateid(clp, stateid);
197 inode = nfs_layout_find_inode_by_fh(clp, fh);
239 static u32 initiate_file_draining(struct nfs_client *clp,
247 ino = nfs_layout_find_inode(clp, &args->cbl_fh, &args->cbl_stateid);
304 trace_nfs4_cb_layoutrecall_file(clp, &args->cbl_fh, ino,
309 static u32 initiate_bulk_draining(struct nfs_client *clp,
315 stat = pnfs_destroy_layouts_byfsid(clp, &args->cbl_fsid, true);
317 stat = pnfs_destroy_layouts_byclid(clp, true);
323 static u32 do_callback_layoutrecall(struct nfs_client *clp,
327 return initiate_file_draining(clp, args);
328 return initiate_bulk_draining(clp, args);
337 if (cps->clp)
338 res = do_callback_layoutrecall(cps->clp, args);
342 static void pnfs_recall_all_layouts(struct nfs_client *clp)
350 do_callback_layoutrecall(clp, &args);
361 if (!cps->clp) {
375 nfs4_delete_deviceid(ld, cps->clp, &dev->cbd_dev_id);
440 static int referring_call_exists(struct nfs_client *clp,
458 session = clp->cl_session;
490 struct nfs_client *clp;
494 clp = nfs4_find_client_sessionid(cps->net, args->csa_addr,
496 if (clp == NULL)
499 if (!(clp->cl_session->flags & SESSION4_BACK_CHAN))
502 tbl = &clp->cl_session->bc_slot_table;
517 if (test_bit(NFS4CLNT_SESSION_RESET, &clp->cl_state))
550 if (referring_call_exists(clp, args->csa_nrclists, args->csa_rclists,
566 cps->clp = clp; /* put in nfs4_callback_compound */
596 if (!cps->clp) /* set in cb_sequence */
600 rpc_peeraddr2str(cps->clp->cl_rpcclient, RPC_DISPLAY_ADDR));
612 nfs_expire_unused_delegation_types(cps->clp, flags);
615 pnfs_recall_all_layouts(cps->clp);
618 set_bit(NFS4CLNT_RECALL_ANY_LAYOUT_READ, &cps->clp->cl_state);
622 set_bit(NFS4CLNT_RECALL_ANY_LAYOUT_RW, &cps->clp->cl_state);
626 nfs4_schedule_state_manager(cps->clp);
642 if (!cps->clp) /* set in cb_sequence */
646 rpc_peeraddr2str(cps->clp->cl_rpcclient, RPC_DISPLAY_ADDR),
649 fc_tbl = &cps->clp->cl_session->fc_slot_table;
654 nfs41_notify_server(cps->clp);
665 if (!cps->clp) /* set in cb_sequence */
669 rpc_peeraddr2str(cps->clp->cl_rpcclient, RPC_DISPLAY_ADDR));
673 __wake_up(&cps->clp->cl_lock_waitq, TASK_NORMAL, 0, args);
704 spin_lock(&cps->clp->cl_lock);
706 list_for_each_entry_rcu(server, &cps->clp->cl_superblocks,
724 list_add_tail(&copy->copies, &cps->clp->pending_cb_stateids);
727 spin_unlock(&cps->clp->cl_lock);