]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
nfsd4: remove unnecessary cl_verifier check from setclientid_confirm
authorJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 20 Nov 2007 21:52:07 +0000 (16:52 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Fri, 1 Feb 2008 21:42:05 +0000 (16:42 -0500)
Again, the only way conf and unconf can have the same clientid is if
they were created in the "probable callback update" case of setclientid,
in which case we already know that the cl_verifier fields must agree.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfs4state.c

index df3e7a7ad31e4e17c65c18eb531c2bdfe4a791c4..23b5fc71f9fb88422af0982266636221329a63ff 100644 (file)
@@ -837,7 +837,6 @@ nfsd4_setclientid_confirm(struct svc_rqst *rqstp,
         */
        if ((conf && unconf) && 
            (same_verf(&unconf->cl_confirm, &confirm)) &&
-           (same_verf(&conf->cl_verifier, &unconf->cl_verifier)) &&
            (!same_verf(&conf->cl_confirm, &unconf->cl_confirm))) {
                /*
                 * RFC 3530 14.2.34 CASE 1:
@@ -855,9 +854,7 @@ nfsd4_setclientid_confirm(struct svc_rqst *rqstp,
                        status = nfs_ok;
 
                }
-       } else if ((conf && !unconf) ||
-           ((conf && unconf) && 
-            !same_verf(&conf->cl_verifier, &unconf->cl_verifier))) {
+       } else if (conf && !unconf) {
                /*
                 * RFC 3530 14.2.34 CASE 2:
                 * probable retransmitted request; play it safe and