diff options
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 0f2643dac22a..ce0412fd23eb 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -782,7 +782,6 @@ static struct nfsd4_session *alloc_init_session(struct svc_rqst *rqstp, struct n | |||
782 | svc_xprt_get(rqstp->rq_xprt); | 782 | svc_xprt_get(rqstp->rq_xprt); |
783 | rpc_copy_addr((struct sockaddr *)&clp->cl_cb_conn.cb_addr, sa); | 783 | rpc_copy_addr((struct sockaddr *)&clp->cl_cb_conn.cb_addr, sa); |
784 | clp->cl_cb_conn.cb_addrlen = svc_addr_len(sa); | 784 | clp->cl_cb_conn.cb_addrlen = svc_addr_len(sa); |
785 | clp->cl_cb_conn.cb_minorversion = 1; | ||
786 | nfsd4_probe_callback(clp); | 785 | nfsd4_probe_callback(clp); |
787 | } | 786 | } |
788 | return new; | 787 | return new; |
@@ -1200,7 +1199,6 @@ gen_callback(struct nfs4_client *clp, struct nfsd4_setclientid *se, u32 scopeid) | |||
1200 | if (conn->cb_addr.ss_family == AF_INET6) | 1199 | if (conn->cb_addr.ss_family == AF_INET6) |
1201 | ((struct sockaddr_in6 *)&conn->cb_addr)->sin6_scope_id = scopeid; | 1200 | ((struct sockaddr_in6 *)&conn->cb_addr)->sin6_scope_id = scopeid; |
1202 | 1201 | ||
1203 | conn->cb_minorversion = 0; | ||
1204 | conn->cb_prog = se->se_callback_prog; | 1202 | conn->cb_prog = se->se_callback_prog; |
1205 | conn->cb_ident = se->se_callback_ident; | 1203 | conn->cb_ident = se->se_callback_ident; |
1206 | return; | 1204 | return; |
@@ -1541,6 +1539,11 @@ nfsd4_create_session(struct svc_rqst *rqstp, | |||
1541 | } | 1539 | } |
1542 | 1540 | ||
1543 | /* | 1541 | /* |
1542 | * XXX: we should probably set this at creation time, and check | ||
1543 | * for consistent minorversion use throughout: | ||
1544 | */ | ||
1545 | conf->cl_minorversion = 1; | ||
1546 | /* | ||
1544 | * We do not support RDMA or persistent sessions | 1547 | * We do not support RDMA or persistent sessions |
1545 | */ | 1548 | */ |
1546 | cr_ses->flags &= ~SESSION4_PERSIST; | 1549 | cr_ses->flags &= ~SESSION4_PERSIST; |
@@ -1857,6 +1860,11 @@ nfsd4_setclientid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
1857 | goto out; | 1860 | goto out; |
1858 | gen_clid(new); | 1861 | gen_clid(new); |
1859 | } | 1862 | } |
1863 | /* | ||
1864 | * XXX: we should probably set this at creation time, and check | ||
1865 | * for consistent minorversion use throughout: | ||
1866 | */ | ||
1867 | new->cl_minorversion = 0; | ||
1860 | gen_callback(new, setclid, rpc_get_scope_id(sa)); | 1868 | gen_callback(new, setclid, rpc_get_scope_id(sa)); |
1861 | add_to_unconfirmed(new, strhashval); | 1869 | add_to_unconfirmed(new, strhashval); |
1862 | setclid->se_clientid.cl_boot = new->cl_clientid.cl_boot; | 1870 | setclid->se_clientid.cl_boot = new->cl_clientid.cl_boot; |