aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4callback.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/nfs4callback.c')
-rw-r--r--fs/nfsd/nfs4callback.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
index 0aaf68beedbd..ed860d7ddd19 100644
--- a/fs/nfsd/nfs4callback.c
+++ b/fs/nfsd/nfs4callback.c
@@ -369,7 +369,7 @@ static int max_cb_time(void)
369int setup_callback_client(struct nfs4_client *clp) 369int setup_callback_client(struct nfs4_client *clp)
370{ 370{
371 struct sockaddr_in addr; 371 struct sockaddr_in addr;
372 struct nfs4_callback *cb = &clp->cl_callback; 372 struct nfs4_cb_conn *cb = &clp->cl_cb_conn;
373 struct rpc_timeout timeparms = { 373 struct rpc_timeout timeparms = {
374 .to_initval = max_cb_time(), 374 .to_initval = max_cb_time(),
375 .to_retries = 0, 375 .to_retries = 0,
@@ -422,7 +422,7 @@ static void nfsd4_cb_probe_done(struct rpc_task *task, void *calldata)
422 if (task->tk_status) 422 if (task->tk_status)
423 warn_no_callback_path(clp, task->tk_status); 423 warn_no_callback_path(clp, task->tk_status);
424 else 424 else
425 atomic_set(&clp->cl_callback.cb_set, 1); 425 atomic_set(&clp->cl_cb_conn.cb_set, 1);
426 put_nfs4_client(clp); 426 put_nfs4_client(clp);
427} 427}
428 428
@@ -430,7 +430,7 @@ static const struct rpc_call_ops nfsd4_cb_probe_ops = {
430 .rpc_call_done = nfsd4_cb_probe_done, 430 .rpc_call_done = nfsd4_cb_probe_done,
431}; 431};
432 432
433static struct rpc_cred *lookup_cb_cred(struct nfs4_callback *cb) 433static struct rpc_cred *lookup_cb_cred(struct nfs4_cb_conn *cb)
434{ 434{
435 struct auth_cred acred = { 435 struct auth_cred acred = {
436 .machine_cred = 1 436 .machine_cred = 1
@@ -448,7 +448,7 @@ static struct rpc_cred *lookup_cb_cred(struct nfs4_callback *cb)
448 448
449void do_probe_callback(struct nfs4_client *clp) 449void do_probe_callback(struct nfs4_client *clp)
450{ 450{
451 struct nfs4_callback *cb = &clp->cl_callback; 451 struct nfs4_cb_conn *cb = &clp->cl_cb_conn;
452 struct rpc_message msg = { 452 struct rpc_message msg = {
453 .rpc_proc = &nfs4_cb_procedures[NFSPROC4_CLNT_CB_NULL], 453 .rpc_proc = &nfs4_cb_procedures[NFSPROC4_CLNT_CB_NULL],
454 .rpc_argp = clp, 454 .rpc_argp = clp,
@@ -480,7 +480,7 @@ nfsd4_probe_callback(struct nfs4_client *clp)
480{ 480{
481 int status; 481 int status;
482 482
483 BUG_ON(atomic_read(&clp->cl_callback.cb_set)); 483 BUG_ON(atomic_read(&clp->cl_cb_conn.cb_set));
484 484
485 status = setup_callback_client(clp); 485 status = setup_callback_client(clp);
486 if (status) { 486 if (status) {
@@ -501,12 +501,12 @@ void
501nfsd4_cb_recall(struct nfs4_delegation *dp) 501nfsd4_cb_recall(struct nfs4_delegation *dp)
502{ 502{
503 struct nfs4_client *clp = dp->dl_client; 503 struct nfs4_client *clp = dp->dl_client;
504 struct rpc_clnt *clnt = clp->cl_callback.cb_client; 504 struct rpc_clnt *clnt = clp->cl_cb_conn.cb_client;
505 struct nfs4_cb_recall *cbr = &dp->dl_recall; 505 struct nfs4_cb_recall *cbr = &dp->dl_recall;
506 struct rpc_message msg = { 506 struct rpc_message msg = {
507 .rpc_proc = &nfs4_cb_procedures[NFSPROC4_CLNT_CB_RECALL], 507 .rpc_proc = &nfs4_cb_procedures[NFSPROC4_CLNT_CB_RECALL],
508 .rpc_argp = cbr, 508 .rpc_argp = cbr,
509 .rpc_cred = clp->cl_callback.cb_cred 509 .rpc_cred = clp->cl_cb_conn.cb_cred
510 }; 510 };
511 int retries = 1; 511 int retries = 1;
512 int status = 0; 512 int status = 0;
@@ -519,7 +519,7 @@ nfsd4_cb_recall(struct nfs4_delegation *dp)
519 switch (status) { 519 switch (status) {
520 case -EIO: 520 case -EIO:
521 /* Network partition? */ 521 /* Network partition? */
522 atomic_set(&clp->cl_callback.cb_set, 0); 522 atomic_set(&clp->cl_cb_conn.cb_set, 0);
523 case -EBADHANDLE: 523 case -EBADHANDLE:
524 case -NFS4ERR_BAD_STATEID: 524 case -NFS4ERR_BAD_STATEID:
525 /* Race: client probably got cb_recall 525 /* Race: client probably got cb_recall