aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4state.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r--fs/nfsd/nfs4state.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 59c9bd4c89e1..4300d9ffe95f 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -1312,7 +1312,7 @@ nfsd4_create_session(struct svc_rqst *rqstp,
1312 cstate->minorversion; 1312 cstate->minorversion;
1313 unconf->cl_cb_conn.cb_prog = cr_ses->callback_prog; 1313 unconf->cl_cb_conn.cb_prog = cr_ses->callback_prog;
1314 unconf->cl_cb_seq_nr = 1; 1314 unconf->cl_cb_seq_nr = 1;
1315 nfsd4_probe_callback(unconf); 1315 nfsd4_probe_callback(unconf, &unconf->cl_cb_conn);
1316 } 1316 }
1317 conf = unconf; 1317 conf = unconf;
1318 } else { 1318 } else {
@@ -1605,9 +1605,8 @@ nfsd4_setclientid_confirm(struct svc_rqst *rqstp,
1605 if (!same_creds(&conf->cl_cred, &unconf->cl_cred)) 1605 if (!same_creds(&conf->cl_cred, &unconf->cl_cred))
1606 status = nfserr_clid_inuse; 1606 status = nfserr_clid_inuse;
1607 else { 1607 else {
1608 /* XXX: We just turn off callbacks until we can handle
1609 * change request correctly. */
1610 atomic_set(&conf->cl_cb_set, 0); 1608 atomic_set(&conf->cl_cb_set, 0);
1609 nfsd4_probe_callback(conf, &unconf->cl_cb_conn);
1611 expire_client(unconf); 1610 expire_client(unconf);
1612 status = nfs_ok; 1611 status = nfs_ok;
1613 1612
@@ -1641,7 +1640,7 @@ nfsd4_setclientid_confirm(struct svc_rqst *rqstp,
1641 } 1640 }
1642 move_to_confirmed(unconf); 1641 move_to_confirmed(unconf);
1643 conf = unconf; 1642 conf = unconf;
1644 nfsd4_probe_callback(conf); 1643 nfsd4_probe_callback(conf, &conf->cl_cb_conn);
1645 status = nfs_ok; 1644 status = nfs_ok;
1646 } 1645 }
1647 } else if ((!conf || (conf && !same_verf(&conf->cl_confirm, &confirm))) 1646 } else if ((!conf || (conf && !same_verf(&conf->cl_confirm, &confirm)))