Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267141
b: refs/heads/master
c: 16d2594
h: refs/heads/master
i:
  267139: 4e66fab
v: v3
  • Loading branch information
J. Bruce Fields committed Sep 1, 2011
1 parent 698ee8c commit e7beea0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7c13f344cf8bec22301c5ed7ef1d90eecb57ba43
refs/heads/master: 16d259418b7c0dda79b71bfbfeaedc0ba4035f23
8 changes: 4 additions & 4 deletions trunk/fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -4098,6 +4098,7 @@ nfsd4_lockt(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
{
struct inode *inode;
struct file_lock file_lock;
struct nfs4_stateowner *so;
int error;
__be32 status;

Expand All @@ -4107,7 +4108,6 @@ nfsd4_lockt(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
if (check_lock_length(lockt->lt_offset, lockt->lt_length))
return nfserr_inval;

lockt->lt_stateowner = NULL;
nfs4_lock_state();

status = nfserr_stale_clientid;
Expand All @@ -4134,10 +4134,10 @@ nfsd4_lockt(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
goto out;
}

lockt->lt_stateowner = find_lockstateowner_str(inode,
so = find_lockstateowner_str(inode,
&lockt->lt_clientid, &lockt->lt_owner);
if (lockt->lt_stateowner)
file_lock.fl_owner = (fl_owner_t)lockt->lt_stateowner;
if (so)
file_lock.fl_owner = (fl_owner_t)so;
file_lock.fl_pid = current->tgid;
file_lock.fl_flags = FL_POSIX;

Expand Down
1 change: 0 additions & 1 deletion trunk/fs/nfsd/xdr4.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ struct nfsd4_lockt {
struct xdr_netobj lt_owner;
u64 lt_offset;
u64 lt_length;
struct nfs4_stateowner * lt_stateowner;
struct nfsd4_lock_denied lt_denied;
};

Expand Down

0 comments on commit e7beea0

Please sign in to comment.