Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294524
b: refs/heads/master
c: 8e663f0
h: refs/heads/master
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Mar 6, 2012
1 parent 2a8cd06 commit 4528549
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 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: a1d0b5eebc4fd6e0edb02688b35f17f67f42aea5
refs/heads/master: 8e663f0e5fabf57065aed1cfdaff5b13057dce23
10 changes: 5 additions & 5 deletions trunk/fs/nfs/callback_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ __be32 nfs4_callback_recall(struct cb_recallargs *args, void *dummy,
res = 0;
break;
case -ENOENT:
if (res != 0)
res = htonl(NFS4ERR_BAD_STATEID);
res = htonl(NFS4ERR_BAD_STATEID);
break;
default:
res = htonl(NFS4ERR_RESOURCE);
Expand Down Expand Up @@ -325,10 +324,11 @@ int nfs41_validate_delegation_stateid(struct nfs_delegation *delegation, const n
if (delegation == NULL)
return 0;

if (stateid->stateid.seqid != 0)
if (stateid->stateid.seqid != 0 &&
stateid->stateid.seqid != delegation->stateid.stateid.seqid)
return 0;
if (memcmp(&delegation->stateid.stateid.other,
&stateid->stateid.other,
if (memcmp(delegation->stateid.stateid.other,
stateid->stateid.other,
NFS4_STATEID_OTHER_SIZE))
return 0;

Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/nfs/delegation.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ void nfs_expire_unreferenced_delegations(struct nfs_client *clp)
/**
* nfs_async_inode_return_delegation - asynchronously return a delegation
* @inode: inode to process
* @stateid: state ID information from CB_RECALL arguments
* @stateid: state ID information
*
* Returns zero on success, or a negative errno value.
*/
Expand Down

0 comments on commit 4528549

Please sign in to comment.