diff options
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index b205c7d7bc6a..d7b5e6b89207 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -182,7 +182,7 @@ alloc_init_deleg(struct nfs4_client *clp, struct nfs4_stateid *stp, struct svc_f | |||
182 | { | 182 | { |
183 | struct nfs4_delegation *dp; | 183 | struct nfs4_delegation *dp; |
184 | struct nfs4_file *fp = stp->st_file; | 184 | struct nfs4_file *fp = stp->st_file; |
185 | struct nfs4_callback *cb = &stp->st_stateowner->so_client->cl_callback; | 185 | struct nfs4_cb_conn *cb = &stp->st_stateowner->so_client->cl_cb_conn; |
186 | 186 | ||
187 | dprintk("NFSD alloc_init_deleg\n"); | 187 | dprintk("NFSD alloc_init_deleg\n"); |
188 | if (fp->fi_had_conflict) | 188 | if (fp->fi_had_conflict) |
@@ -633,19 +633,19 @@ static struct nfs4_client *alloc_client(struct xdr_netobj name) | |||
633 | static void | 633 | static void |
634 | shutdown_callback_client(struct nfs4_client *clp) | 634 | shutdown_callback_client(struct nfs4_client *clp) |
635 | { | 635 | { |
636 | struct rpc_clnt *clnt = clp->cl_callback.cb_client; | 636 | struct rpc_clnt *clnt = clp->cl_cb_conn.cb_client; |
637 | 637 | ||
638 | if (clnt) { | 638 | if (clnt) { |
639 | /* | 639 | /* |
640 | * Callback threads take a reference on the client, so there | 640 | * Callback threads take a reference on the client, so there |
641 | * should be no outstanding callbacks at this point. | 641 | * should be no outstanding callbacks at this point. |
642 | */ | 642 | */ |
643 | clp->cl_callback.cb_client = NULL; | 643 | clp->cl_cb_conn.cb_client = NULL; |
644 | rpc_shutdown_client(clnt); | 644 | rpc_shutdown_client(clnt); |
645 | } | 645 | } |
646 | if (clp->cl_callback.cb_cred) { | 646 | if (clp->cl_cb_conn.cb_cred) { |
647 | put_rpccred(clp->cl_callback.cb_cred); | 647 | put_rpccred(clp->cl_cb_conn.cb_cred); |
648 | clp->cl_callback.cb_cred = NULL; | 648 | clp->cl_cb_conn.cb_cred = NULL; |
649 | } | 649 | } |
650 | } | 650 | } |
651 | 651 | ||
@@ -719,7 +719,7 @@ static struct nfs4_client *create_client(struct xdr_netobj name, char *recdir) | |||
719 | return NULL; | 719 | return NULL; |
720 | memcpy(clp->cl_recdir, recdir, HEXDIR_LEN); | 720 | memcpy(clp->cl_recdir, recdir, HEXDIR_LEN); |
721 | atomic_set(&clp->cl_count, 1); | 721 | atomic_set(&clp->cl_count, 1); |
722 | atomic_set(&clp->cl_callback.cb_set, 0); | 722 | atomic_set(&clp->cl_cb_conn.cb_set, 0); |
723 | INIT_LIST_HEAD(&clp->cl_idhash); | 723 | INIT_LIST_HEAD(&clp->cl_idhash); |
724 | INIT_LIST_HEAD(&clp->cl_strhash); | 724 | INIT_LIST_HEAD(&clp->cl_strhash); |
725 | INIT_LIST_HEAD(&clp->cl_openowners); | 725 | INIT_LIST_HEAD(&clp->cl_openowners); |
@@ -971,7 +971,7 @@ parse_ipv4(unsigned int addr_len, char *addr_val, unsigned int *cbaddrp, unsigne | |||
971 | static void | 971 | static void |
972 | gen_callback(struct nfs4_client *clp, struct nfsd4_setclientid *se) | 972 | gen_callback(struct nfs4_client *clp, struct nfsd4_setclientid *se) |
973 | { | 973 | { |
974 | struct nfs4_callback *cb = &clp->cl_callback; | 974 | struct nfs4_cb_conn *cb = &clp->cl_cb_conn; |
975 | 975 | ||
976 | /* Currently, we only support tcp for the callback channel */ | 976 | /* Currently, we only support tcp for the callback channel */ |
977 | if ((se->se_callback_netid_len != 3) || memcmp((char *)se->se_callback_netid_val, "tcp", 3)) | 977 | if ((se->se_callback_netid_len != 3) || memcmp((char *)se->se_callback_netid_val, "tcp", 3)) |
@@ -1691,7 +1691,7 @@ nfsd4_setclientid_confirm(struct svc_rqst *rqstp, | |||
1691 | else { | 1691 | else { |
1692 | /* XXX: We just turn off callbacks until we can handle | 1692 | /* XXX: We just turn off callbacks until we can handle |
1693 | * change request correctly. */ | 1693 | * change request correctly. */ |
1694 | atomic_set(&conf->cl_callback.cb_set, 0); | 1694 | atomic_set(&conf->cl_cb_conn.cb_set, 0); |
1695 | expire_client(unconf); | 1695 | expire_client(unconf); |
1696 | status = nfs_ok; | 1696 | status = nfs_ok; |
1697 | 1697 | ||
@@ -2425,7 +2425,7 @@ nfs4_open_delegation(struct svc_fh *fh, struct nfsd4_open *open, struct nfs4_sta | |||
2425 | { | 2425 | { |
2426 | struct nfs4_delegation *dp; | 2426 | struct nfs4_delegation *dp; |
2427 | struct nfs4_stateowner *sop = stp->st_stateowner; | 2427 | struct nfs4_stateowner *sop = stp->st_stateowner; |
2428 | struct nfs4_callback *cb = &sop->so_client->cl_callback; | 2428 | struct nfs4_cb_conn *cb = &sop->so_client->cl_cb_conn; |
2429 | struct file_lock fl, *flp = &fl; | 2429 | struct file_lock fl, *flp = &fl; |
2430 | int status, flag = 0; | 2430 | int status, flag = 0; |
2431 | 2431 | ||
@@ -2617,7 +2617,7 @@ nfsd4_renew(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
2617 | renew_client(clp); | 2617 | renew_client(clp); |
2618 | status = nfserr_cb_path_down; | 2618 | status = nfserr_cb_path_down; |
2619 | if (!list_empty(&clp->cl_delegations) | 2619 | if (!list_empty(&clp->cl_delegations) |
2620 | && !atomic_read(&clp->cl_callback.cb_set)) | 2620 | && !atomic_read(&clp->cl_cb_conn.cb_set)) |
2621 | goto out; | 2621 | goto out; |
2622 | status = nfs_ok; | 2622 | status = nfs_ok; |
2623 | out: | 2623 | out: |