Lines Matching refs:clp
252 struct nfs_client *clp) in nfs_abort_delegation_return() argument
259 set_bit(NFS4CLNT_DELEGRETURN, &clp->cl_state); in nfs_abort_delegation_return()
265 struct nfs_client *clp) in nfs_detach_delegation_locked() argument
269 lockdep_is_held(&clp->cl_lock)); in nfs_detach_delegation_locked()
287 struct nfs_client *clp = server->nfs_client; in nfs_detach_delegation() local
289 spin_lock(&clp->cl_lock); in nfs_detach_delegation()
290 delegation = nfs_detach_delegation_locked(nfsi, delegation, clp); in nfs_detach_delegation()
291 spin_unlock(&clp->cl_lock); in nfs_detach_delegation()
330 struct nfs_client *clp = server->nfs_client; in nfs_inode_set_delegation() local
348 spin_lock(&clp->cl_lock); in nfs_inode_set_delegation()
350 lockdep_is_held(&clp->cl_lock)); in nfs_inode_set_delegation()
367 __func__, clp->cl_hostname); in nfs_inode_set_delegation()
378 old_delegation, clp); in nfs_inode_set_delegation()
393 spin_unlock(&clp->cl_lock); in nfs_inode_set_delegation()
406 struct nfs_client *clp = NFS_SERVER(inode)->nfs_client; in nfs_end_delegation_return() local
422 err = nfs4_wait_clnt_recover(clp); in nfs_end_delegation_return()
426 nfs_abort_delegation_return(delegation, clp); in nfs_end_delegation_return()
468 int nfs_client_return_marked_delegations(struct nfs_client *clp) in nfs_client_return_marked_delegations() argument
477 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { in nfs_client_return_marked_delegations()
498 set_bit(NFS4CLNT_DELEGRETURN, &clp->cl_state); in nfs_client_return_marked_delegations()
571 static void nfs_client_mark_return_all_delegations(struct nfs_client *clp) in nfs_client_mark_return_all_delegations() argument
576 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) in nfs_client_mark_return_all_delegations()
581 static void nfs_delegation_run_state_manager(struct nfs_client *clp) in nfs_delegation_run_state_manager() argument
583 if (test_bit(NFS4CLNT_DELEGRETURN, &clp->cl_state)) in nfs_delegation_run_state_manager()
584 nfs4_schedule_state_manager(clp); in nfs_delegation_run_state_manager()
592 void nfs_expire_all_delegations(struct nfs_client *clp) in nfs_expire_all_delegations() argument
594 nfs_client_mark_return_all_delegations(clp); in nfs_expire_all_delegations()
595 nfs_delegation_run_state_manager(clp); in nfs_expire_all_delegations()
605 struct nfs_client *clp = server->nfs_client; in nfs_server_return_all_delegations() local
608 if (clp == NULL) in nfs_server_return_all_delegations()
616 nfs4_schedule_state_manager(clp); in nfs_server_return_all_delegations()
617 nfs4_wait_clnt_recover(clp); in nfs_server_return_all_delegations()
634 static void nfs_client_mark_return_unused_delegation_types(struct nfs_client *clp, in nfs_client_mark_return_unused_delegation_types() argument
640 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) in nfs_client_mark_return_unused_delegation_types()
676 void nfs_expire_unused_delegation_types(struct nfs_client *clp, fmode_t flags) in nfs_expire_unused_delegation_types() argument
678 nfs_client_mark_return_unused_delegation_types(clp, flags); in nfs_expire_unused_delegation_types()
679 nfs_delegation_run_state_manager(clp); in nfs_expire_unused_delegation_types()
698 void nfs_expire_unreferenced_delegations(struct nfs_client *clp) in nfs_expire_unreferenced_delegations() argument
703 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) in nfs_expire_unreferenced_delegations()
707 nfs_delegation_run_state_manager(clp); in nfs_expire_unreferenced_delegations()
721 struct nfs_client *clp = server->nfs_client; in nfs_async_inode_return_delegation() local
729 !clp->cl_mvops->match_stateid(&delegation->stateid, stateid)) in nfs_async_inode_return_delegation()
734 nfs_delegation_run_state_manager(clp); in nfs_async_inode_return_delegation()
769 struct inode *nfs_delegation_find_inode(struct nfs_client *clp, in nfs_delegation_find_inode() argument
776 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { in nfs_delegation_find_inode()
798 void nfs_delegation_mark_reclaim(struct nfs_client *clp) in nfs_delegation_mark_reclaim() argument
803 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) in nfs_delegation_mark_reclaim()
813 void nfs_delegation_reap_unclaimed(struct nfs_client *clp) in nfs_delegation_reap_unclaimed() argument
821 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { in nfs_delegation_reap_unclaimed()
861 int nfs_delegations_present(struct nfs_client *clp) in nfs_delegations_present() argument
867 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) in nfs_delegations_present()