提交 c116a0af 编写于 作者: J J. Bruce Fields

nfsd4: set cl_minorversion at create time

And remove some mostly obsolete comments.
Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
上级 68eb3508
...@@ -1667,6 +1667,7 @@ nfsd4_exchange_id(struct svc_rqst *rqstp, ...@@ -1667,6 +1667,7 @@ nfsd4_exchange_id(struct svc_rqst *rqstp,
status = nfserr_jukebox; status = nfserr_jukebox;
goto out; goto out;
} }
new->cl_minorversion = 1;
gen_clid(new); gen_clid(new);
add_to_unconfirmed(new, strhashval); add_to_unconfirmed(new, strhashval);
...@@ -1799,12 +1800,6 @@ nfsd4_create_session(struct svc_rqst *rqstp, ...@@ -1799,12 +1800,6 @@ nfsd4_create_session(struct svc_rqst *rqstp,
status = nfserr_stale_clientid; status = nfserr_stale_clientid;
goto out; goto out;
} }
/*
* XXX: we should probably set this at creation time, and check
* for consistent minorversion use throughout:
*/
conf->cl_minorversion = 1;
/* /*
* We do not support RDMA or persistent sessions * We do not support RDMA or persistent sessions
*/ */
...@@ -2216,10 +2211,6 @@ nfsd4_setclientid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, ...@@ -2216,10 +2211,6 @@ nfsd4_setclientid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
copy_clid(new, conf); copy_clid(new, conf);
else /* case 4 (new client) or cases 2, 3 (client reboot): */ else /* case 4 (new client) or cases 2, 3 (client reboot): */
gen_clid(new); gen_clid(new);
/*
* XXX: we should probably set this at creation time, and check
* for consistent minorversion use throughout:
*/
new->cl_minorversion = 0; new->cl_minorversion = 0;
gen_callback(new, setclid, rqstp); gen_callback(new, setclid, rqstp);
add_to_unconfirmed(new, strhashval); add_to_unconfirmed(new, strhashval);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册