Lines Matching refs:clp

324 					struct nfs_client *clp, int err)
331 set_bit(NFS4CLNT_DELEGRETURN_DELAYED, &clp->cl_state);
339 struct nfs_client *clp)
343 lockdep_is_held(&clp->cl_lock));
364 struct nfs_client *clp = server->nfs_client;
366 spin_lock(&clp->cl_lock);
367 delegation = nfs_detach_delegation_locked(nfsi, delegation, clp);
368 spin_unlock(&clp->cl_lock);
434 struct nfs_client *clp = server->nfs_client;
453 spin_lock(&clp->cl_lock);
455 lockdep_is_held(&clp->cl_lock));
476 __func__, clp->cl_hostname);
487 freeme = nfs_detach_delegation_locked(nfsi, old_delegation, clp);
504 spin_unlock(&clp->cl_lock);
519 struct nfs_client *clp = NFS_SERVER(inode)->nfs_client;
534 err = nfs4_wait_clnt_recover(clp);
538 nfs_abort_delegation_return(delegation, clp, err);
662 static bool nfs_client_clear_delayed_delegations(struct nfs_client *clp)
667 if (!test_and_clear_bit(NFS4CLNT_DELEGRETURN_DELAYED, &clp->cl_state))
670 list_for_each_entry_rcu (server, &clp->cl_superblocks, client_link) {
681 * @clp: nfs_client to process
689 int nfs_client_return_marked_delegations(struct nfs_client *clp)
692 clp, nfs_server_return_marked_delegations, NULL);
696 if (nfs_client_clear_delayed_delegations(clp))
825 static void nfs_client_mark_return_all_delegations(struct nfs_client *clp)
830 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link)
835 static void nfs_delegation_run_state_manager(struct nfs_client *clp)
837 if (test_bit(NFS4CLNT_DELEGRETURN, &clp->cl_state))
838 nfs4_schedule_state_manager(clp);
843 * @clp: client to process
846 void nfs_expire_all_delegations(struct nfs_client *clp)
848 nfs_client_mark_return_all_delegations(clp);
849 nfs_delegation_run_state_manager(clp);
859 struct nfs_client *clp = server->nfs_client;
862 if (clp == NULL)
870 nfs4_schedule_state_manager(clp);
871 nfs4_wait_clnt_recover(clp);
888 static void nfs_client_mark_return_unused_delegation_types(struct nfs_client *clp,
894 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link)
979 * @clp: client to process
983 void nfs_expire_unused_delegation_types(struct nfs_client *clp, fmode_t flags)
985 nfs_client_mark_return_unused_delegation_types(clp, flags);
986 nfs_delegation_run_state_manager(clp);
1002 * @clp: nfs_client to process
1005 void nfs_expire_unreferenced_delegations(struct nfs_client *clp)
1010 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link)
1014 nfs_delegation_run_state_manager(clp);
1028 struct nfs_client *clp = server->nfs_client;
1036 !clp->cl_mvops->match_stateid(&delegation->stateid, stateid))
1041 nfs_delegation_run_state_manager(clp);
1082 * @clp: client state handle
1088 struct inode *nfs_delegation_find_inode(struct nfs_client *clp,
1095 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) {
1123 * @clp: nfs_client to process
1126 void nfs_delegation_mark_reclaim(struct nfs_client *clp)
1131 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link)
1174 * @clp: nfs_client to process
1177 void nfs_delegation_reap_unclaimed(struct nfs_client *clp)
1179 nfs_client_for_each_server(clp, nfs_server_reap_unclaimed_delegations,
1183 static inline bool nfs4_server_rebooted(const struct nfs_client *clp)
1185 return (clp->cl_state & (BIT(NFS4CLNT_CHECK_LEASE) |
1223 * @clp: nfs_client to process
1228 void nfs_mark_test_expired_all_delegations(struct nfs_client *clp)
1233 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link)
1240 * @clp: nfs_client to process
1244 void nfs_test_expired_all_delegations(struct nfs_client *clp)
1246 nfs_mark_test_expired_all_delegations(clp);
1247 nfs4_schedule_state_manager(clp);
1310 * @clp: nfs_client to process
1317 void nfs_reap_expired_delegations(struct nfs_client *clp)
1319 nfs_client_for_each_server(clp, nfs_server_reap_expired_delegations,
1326 struct nfs_client *clp = NFS_SERVER(inode)->nfs_client;
1340 nfs4_schedule_state_manager(clp);
1345 * @clp: client state handle
1350 int nfs_delegations_present(struct nfs_client *clp)
1356 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link)