Lines Matching refs:fi_lock
598 lockdep_assert_held(&f->fi_lock); in find_writeable_file_locked()
611 spin_lock(&f->fi_lock); in find_writeable_file()
613 spin_unlock(&f->fi_lock); in find_writeable_file()
623 lockdep_assert_held(&f->fi_lock); in find_readable_file_locked()
636 spin_lock(&f->fi_lock); in find_readable_file()
638 spin_unlock(&f->fi_lock); in find_readable_file()
648 spin_lock(&f->fi_lock); in find_rw_file()
650 spin_unlock(&f->fi_lock); in find_rw_file()
662 spin_lock(&f->fi_lock); in find_any_file()
669 spin_unlock(&f->fi_lock); in find_any_file()
675 lockdep_assert_held(&f->fi_lock); in find_any_file_locked()
747 lockdep_assert_held(&fp->fi_lock); in nfs4_resolve_deny_conflicts_locked()
775 lockdep_assert_held(&fp->fi_lock); in __nfs4_file_get_access()
786 lockdep_assert_held(&fp->fi_lock); in nfs4_file_get_access()
821 might_lock(&fp->fi_lock); in __nfs4_file_put_access()
823 if (atomic_dec_and_lock(&fp->fi_access[oflag], &fp->fi_lock)) { in __nfs4_file_put_access()
830 spin_unlock(&fp->fi_lock); in __nfs4_file_put_access()
873 lockdep_assert_held(&fp->fi_lock); in hash_clnt_odstate_locked()
893 if (refcount_dec_and_lock(&co->co_odcount, &fp->fi_lock)) { in put_clnt_odstate()
895 spin_unlock(&fp->fi_lock); in put_clnt_odstate()
913 spin_lock(&fp->fi_lock); in find_or_hash_clnt_odstate()
924 spin_unlock(&fp->fi_lock); in find_or_hash_clnt_odstate()
1234 spin_lock(&fp->fi_lock); in put_deleg_file()
1237 spin_unlock(&fp->fi_lock); in put_deleg_file()
1277 lockdep_assert_held(&fp->fi_lock); in nfs4_delegation_exists()
1307 lockdep_assert_held(&fp->fi_lock); in hash_delegation_locked()
1343 spin_lock(&fp->fi_lock); in unhash_delegation_locked()
1347 spin_unlock(&fp->fi_lock); in unhash_delegation_locked()
1430 spin_lock(&fp->fi_lock); in recalculate_deny_mode()
1438 spin_unlock(&fp->fi_lock); in recalculate_deny_mode()
1510 spin_lock(&fp->fi_lock); in unhash_ol_stateid()
1512 spin_unlock(&fp->fi_lock); in unhash_ol_stateid()
2819 spin_lock(&nf->fi_lock); in nfs4_show_open()
2827 spin_unlock(&nf->fi_lock); in nfs4_show_open()
2852 spin_lock(&nf->fi_lock); in nfs4_show_lock()
2872 spin_unlock(&nf->fi_lock); in nfs4_show_lock()
2894 spin_lock(&nf->fi_lock); in nfs4_show_deleg()
2902 spin_unlock(&nf->fi_lock); in nfs4_show_deleg()
2922 spin_lock(&ls->ls_stid.sc_file->fi_lock); in nfs4_show_layout()
2930 spin_unlock(&ls->ls_stid.sc_file->fi_lock); in nfs4_show_layout()
4586 spin_lock_init(&fp->fi_lock); in nfsd4_file_init()
4796 lockdep_assert_held(&fp->fi_lock); in nfsd4_find_existing_open()
4908 spin_lock(&fp->fi_lock); in nfsd4_find_and_lock_existing_open()
4910 spin_unlock(&fp->fi_lock); in nfsd4_find_and_lock_existing_open()
4976 spin_lock(&fp->fi_lock); in init_open_stateid()
4996 spin_unlock(&fp->fi_lock); in init_open_stateid()
5149 spin_lock(&fp->fi_lock); in nfs4_share_conflict()
5152 spin_unlock(&fp->fi_lock); in nfs4_share_conflict()
5545 spin_lock(&fp->fi_lock); in nfs4_get_vfs_file()
5554 spin_unlock(&fp->fi_lock); in nfs4_get_vfs_file()
5560 spin_unlock(&fp->fi_lock); in nfs4_get_vfs_file()
5568 spin_unlock(&fp->fi_lock); in nfs4_get_vfs_file()
5574 spin_unlock(&fp->fi_lock); in nfs4_get_vfs_file()
5588 spin_unlock(&fp->fi_lock); in nfs4_get_vfs_file()
5595 spin_lock(&fp->fi_lock); in nfs4_get_vfs_file()
5601 spin_unlock(&fp->fi_lock); in nfs4_get_vfs_file()
5634 spin_lock(&fp->fi_lock); in nfs4_upgrade_open()
5648 spin_unlock(&fp->fi_lock); in nfs4_upgrade_open()
5729 spin_lock(&fp->fi_lock); in nfsd4_check_conflicting_opens()
5734 spin_unlock(&fp->fi_lock); in nfsd4_check_conflicting_opens()
5738 spin_unlock(&fp->fi_lock); in nfsd4_check_conflicting_opens()
5844 spin_lock(&fp->fi_lock); in nfs4_set_delegation()
5857 spin_unlock(&fp->fi_lock); in nfs4_set_delegation()
5904 spin_lock(&fp->fi_lock); in nfs4_set_delegation()
5906 spin_unlock(&fp->fi_lock); in nfs4_set_delegation()
6904 spin_lock(&s->sc_file->fi_lock); in nfs4_find_file()
6906 spin_unlock(&s->sc_file->fi_lock); in nfs4_find_file()
7797 spin_lock(&fp->fi_lock); in init_lock_stateid()
7801 spin_unlock(&fp->fi_lock); in init_lock_stateid()
7862 lockdep_assert_held(&fp->fi_lock); in get_lock_access()
8009 spin_lock(&fp->fi_lock); in nfsd4_lock()
8013 spin_unlock(&fp->fi_lock); in nfsd4_lock()
8022 spin_lock(&fp->fi_lock); in nfsd4_lock()
8026 spin_unlock(&fp->fi_lock); in nfsd4_lock()
8357 spin_lock(&fp->fi_lock); in check_for_locks()
8379 spin_unlock(&fp->fi_lock); in check_for_locks()