NFSv4.1: We must bump the clientid sequence number after CREATE_SESSION
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 20 Nov 2012 16:13:12 +0000 (11:13 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 21 Nov 2012 14:29:52 +0000 (09:29 -0500)
We must always bump the clientid sequence number after a successful
call to CREATE_SESSION on the server. The result of
nfs4_verify_channel_attrs() is irrelevant to that requirement.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c

index ee82cdddeebe402ccb02b8fe6e0da0666fd4cc06..1ac339b4f092d54163dc692b24e7155d9883c134 100644 (file)
@@ -5917,10 +5917,9 @@ static int _nfs4_proc_create_session(struct nfs_client *clp,
 
        status = rpc_call_sync(session->clp->cl_rpcclient, &msg, RPC_TASK_TIMEOUT);
 
-       if (!status)
+       if (!status) {
                /* Verify the session's negotiated channel_attrs values */
                status = nfs4_verify_channel_attrs(&args, session);
-       if (!status) {
                /* Increment the clientid slot sequence id */
                clp->cl_seqid++;
        }