Lines Matching refs:lock_stp
5888 static void get_lock_access(struct nfs4_ol_stateid *lock_stp, u32 access) in get_lock_access() argument
5890 struct nfs4_file *fp = lock_stp->st_stid.sc_file; in get_lock_access()
5894 if (test_access(access, lock_stp)) in get_lock_access()
5897 set_access(access, lock_stp); in get_lock_access()
5952 struct nfs4_ol_stateid *lock_stp = NULL; in nfsd4_lock() local
6006 &lock_stp, &new); in nfsd4_lock()
6011 NFS4_LOCK_STID, &lock_stp, nn); in nfsd4_lock()
6015 lock_sop = lockowner(lock_stp->st_stateowner); in nfsd4_lock()
6018 status = nfs4_check_openmode(lock_stp, lkflg); in nfsd4_lock()
6029 fp = lock_stp->st_stid.sc_file; in nfsd4_lock()
6039 get_lock_access(lock_stp, NFS4_SHARE_ACCESS_READ); in nfsd4_lock()
6051 get_lock_access(lock_stp, NFS4_SHARE_ACCESS_WRITE); in nfsd4_lock()
6101 nfs4_inc_and_copy_stateid(&lock->lk_resp_stateid, &lock_stp->st_stid); in nfsd4_lock()
6135 if (lock_stp) { in nfsd4_lock()
6147 release_lock_stateid(lock_stp); in nfsd4_lock()
6149 mutex_unlock(&lock_stp->st_mutex); in nfsd4_lock()
6151 nfs4_put_stid(&lock_stp->st_stid); in nfsd4_lock()