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);
515 spin_unlock(&clp->cl_lock);
530 struct nfs_client *clp = NFS_SERVER(inode)->nfs_client;
552 err = nfs4_wait_clnt_recover(clp);
556 nfs_abort_delegation_return(delegation, clp, err);
680 static bool nfs_client_clear_delayed_delegations(struct nfs_client *clp)
685 if (!test_and_clear_bit(NFS4CLNT_DELEGRETURN_DELAYED, &clp->cl_state))
688 list_for_each_entry_rcu (server, &clp->cl_superblocks, client_link) {
699 * @clp: nfs_client to process
707 int nfs_client_return_marked_delegations(struct nfs_client *clp)
710 clp, nfs_server_return_marked_delegations, NULL);
714 if (nfs_client_clear_delayed_delegations(clp))
846 static void nfs_client_mark_return_all_delegations(struct nfs_client *clp)
851 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link)
856 static void nfs_delegation_run_state_manager(struct nfs_client *clp)
858 if (test_bit(NFS4CLNT_DELEGRETURN, &clp->cl_state))
859 nfs4_schedule_state_manager(clp);
864 * @clp: client to process
867 void nfs_expire_all_delegations(struct nfs_client *clp)
869 nfs_client_mark_return_all_delegations(clp);
870 nfs_delegation_run_state_manager(clp);
880 struct nfs_client *clp = server->nfs_client;
883 if (clp == NULL)
891 nfs4_schedule_state_manager(clp);
892 nfs4_wait_clnt_recover(clp);
909 static void nfs_client_mark_return_unused_delegation_types(struct nfs_client *clp,
915 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link)
1000 * @clp: client to process
1004 void nfs_expire_unused_delegation_types(struct nfs_client *clp, fmode_t flags)
1006 nfs_client_mark_return_unused_delegation_types(clp, flags);
1007 nfs_delegation_run_state_manager(clp);
1023 * @clp: nfs_client to process
1026 void nfs_expire_unreferenced_delegations(struct nfs_client *clp)
1031 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link)
1035 nfs_delegation_run_state_manager(clp);
1049 struct nfs_client *clp = server->nfs_client;
1057 !clp->cl_mvops->match_stateid(&delegation->stateid, stateid))
1065 nfs_delegation_run_state_manager(clp);
1106 * @clp: client state handle
1112 struct inode *nfs_delegation_find_inode(struct nfs_client *clp,
1119 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) {
1147 * @clp: nfs_client to process
1150 void nfs_delegation_mark_reclaim(struct nfs_client *clp)
1155 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link)
1198 * @clp: nfs_client to process
1201 void nfs_delegation_reap_unclaimed(struct nfs_client *clp)
1203 nfs_client_for_each_server(clp, nfs_server_reap_unclaimed_delegations,
1207 static inline bool nfs4_server_rebooted(const struct nfs_client *clp)
1209 return (clp->cl_state & (BIT(NFS4CLNT_CHECK_LEASE) |
1247 * @clp: nfs_client to process
1252 void nfs_mark_test_expired_all_delegations(struct nfs_client *clp)
1257 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link)
1264 * @clp: nfs_client to process
1268 void nfs_test_expired_all_delegations(struct nfs_client *clp)
1270 nfs_mark_test_expired_all_delegations(clp);
1271 nfs4_schedule_state_manager(clp);
1334 * @clp: nfs_client to process
1341 void nfs_reap_expired_delegations(struct nfs_client *clp)
1343 nfs_client_for_each_server(clp, nfs_server_reap_expired_delegations,
1350 struct nfs_client *clp = NFS_SERVER(inode)->nfs_client;
1364 nfs4_schedule_state_manager(clp);
1369 * @clp: client state handle
1374 int nfs_delegations_present(struct nfs_client *clp)
1380 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link)