Lines Matching refs:owner
571 * nfs4_get_state_owner - Look up a state owner given a credential
605 * @sp: state owner data to release
612 * a while, to ensure that those state owner names are
693 list_move(&state->open_states, &state->owner->so_states);
695 list_move_tail(&state->open_states, &state->owner->so_states);
701 __nfs4_find_state_byowner(struct inode *inode, struct nfs4_state_owner *owner)
707 if (state->owner != owner)
724 nfs4_get_open_state(struct inode *inode, struct nfs4_state_owner *owner)
730 state = __nfs4_find_state_byowner(inode, owner);
735 spin_lock(&owner->so_lock);
737 state = __nfs4_find_state_byowner(inode, owner);
740 state->owner = owner;
741 atomic_inc(&owner->so_count);
748 list_add_tail(&state->open_states, &owner->so_states);
749 spin_unlock(&owner->so_lock);
752 spin_unlock(&owner->so_lock);
763 struct nfs4_state_owner *owner = state->owner;
765 if (!refcount_dec_and_lock(&state->count, &owner->so_lock))
771 spin_unlock(&owner->so_lock);
775 nfs4_put_state_owner(owner);
784 struct nfs4_state_owner *owner = state->owner;
788 atomic_inc(&owner->so_count);
790 spin_lock(&owner->so_lock);
817 spin_unlock(&owner->so_lock);
821 nfs4_put_state_owner(owner);
840 * owner (current->files) and the second refers to a flock/OFD
841 * owner (struct file*). In that case, prefer a match for the first
842 * owner.
846 * consistent choice we make is to prefer the first owner, that of a
875 struct nfs_server *server = state->owner->so_server;
906 static struct nfs4_lock_state *nfs4_get_lock_state(struct nfs4_state *state, fl_owner_t owner)
912 lsp = __nfs4_find_lock_state(state, owner, NULL);
923 new = nfs4_alloc_lock_state(state, owner);
929 nfs4_free_lock_state(state->owner->so_server, new);
951 server = state->owner->so_server;
962 struct nfs4_lock_state *lsp = src->fl_u.nfs4_fl.owner;
964 dst->fl_u.nfs4_fl.owner = lsp;
970 nfs4_put_lock_state(fl->fl_u.nfs4_fl.owner);
987 fl->fl_u.nfs4_fl.owner = lsp;
1392 set_bit(NFS_OWNER_RECLAIM_REBOOT, &state->owner->so_flags);
1403 set_bit(NFS_OWNER_RECLAIM_NOGRACE, &state->owner->so_flags);
1560 lsp = fl->fl_u.nfs4_fl.owner;