From 880bcaca838d8518728399c9d094c2e6c95c11da Mon Sep 17 00:00:00 2001 From: "J. Bruce Fields" Date: Sat, 12 May 2012 20:37:23 -0400 Subject: [PATCH] --- yaml --- r: 309848 b: refs/heads/master c: 136e658d621f71b67982dda51a2327830146ef9d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/nfsd/nfs4state.c | 40 +++++++++++++++++++-------------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/[refs] b/[refs] index d2af90758b1e..c4af169d3919 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2dbb269dfed9e8653be81d49e8f109a243bea25c +refs/heads/master: 136e658d621f71b67982dda51a2327830146ef9d diff --git a/trunk/fs/nfsd/nfs4state.c b/trunk/fs/nfsd/nfs4state.c index 93fcf53daee1..491f13a70db1 100644 --- a/trunk/fs/nfsd/nfs4state.c +++ b/trunk/fs/nfsd/nfs4state.c @@ -1557,36 +1557,36 @@ nfsd4_exchange_id(struct svc_rqst *rqstp, bool creds_match = same_creds(&conf->cl_cred, &rqstp->rq_cred); bool verfs_match = same_verf(&verf, &conf->cl_verifier); - if (!clp_used_exchangeid(conf)) { - if (update) { /* buggy client */ + if (update) { + if (!clp_used_exchangeid(conf)) { /* buggy client */ status = nfserr_inval; goto out; } - } - if (!creds_match) { /* case 9 */ - if (update) + if (!creds_match) { /* case 9 */ status = nfserr_perm; - else /* case 3 */ - status = nfserr_clid_inuse; - goto out; - } - if (!verfs_match) { /* case 8 */ - if (update) { + goto out; + } + if (!verfs_match) { /* case 8 */ status = nfserr_not_same; goto out; } - /* case 5, client reboot */ - expire_client(conf); - goto out_new; + /* case 6 */ + exid->flags |= EXCHGID4_FLAG_CONFIRMED_R; + new = conf; + goto out_copy; } - if (!clp_used_exchangeid(conf)) { - status = nfserr_inval; + if (!creds_match) { /* case 3 */ + status = nfserr_clid_inuse; goto out; } - /* case 2 */ - exid->flags |= EXCHGID4_FLAG_CONFIRMED_R; - new = conf; - goto out_copy; + if (verfs_match) { /* case 2 */ + exid->flags |= EXCHGID4_FLAG_CONFIRMED_R; + new = conf; + goto out_copy; + } + /* case 5, client reboot */ + expire_client(conf); + goto out_new; } if (update) { /* case 7 */