diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-11-20 11:13:12 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-11-21 09:29:52 -0500 |
commit | 43095d397219aa1898db23937b03c1215ef16a37 (patch) | |
tree | 856f2c3c22403fad8f9c1cfe3d81afeb14f70d48 /fs/nfs/nfs4proc.c | |
parent | 688a9024e2bc8d07cdc62e287dfb048722cf96df (diff) | |
download | lwn-43095d397219aa1898db23937b03c1215ef16a37.tar.gz lwn-43095d397219aa1898db23937b03c1215ef16a37.zip |
NFSv4.1: We must bump the clientid sequence number after CREATE_SESSION
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>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index ee82cdddeebe..1ac339b4f092 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -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++; } |