diff options
-rw-r--r-- | fs/nfs/callback.c | 12 | ||||
-rw-r--r-- | include/linux/sunrpc/bc_xprt.h | 4 | ||||
-rw-r--r-- | include/linux/sunrpc/svc.h | 2 | ||||
-rw-r--r-- | net/sunrpc/svc.c | 2 | ||||
-rw-r--r-- | net/sunrpc/svcsock.c | 2 |
5 files changed, 11 insertions, 11 deletions
diff --git a/fs/nfs/callback.c b/fs/nfs/callback.c index 753a9e315518..199016528fcb 100644 --- a/fs/nfs/callback.c +++ b/fs/nfs/callback.c | |||
@@ -142,7 +142,7 @@ int nfs4_set_callback_sessionid(struct nfs_client *clp) | |||
142 | struct svc_serv *serv = clp->cl_rpcclient->cl_xprt->bc_serv; | 142 | struct svc_serv *serv = clp->cl_rpcclient->cl_xprt->bc_serv; |
143 | struct nfs4_sessionid *bc_sid; | 143 | struct nfs4_sessionid *bc_sid; |
144 | 144 | ||
145 | if (!serv->bc_xprt) | 145 | if (!serv->sv_bc_xprt) |
146 | return -EINVAL; | 146 | return -EINVAL; |
147 | 147 | ||
148 | /* on success freed in xprt_free */ | 148 | /* on success freed in xprt_free */ |
@@ -152,12 +152,12 @@ int nfs4_set_callback_sessionid(struct nfs_client *clp) | |||
152 | memcpy(bc_sid->data, &clp->cl_session->sess_id.data, | 152 | memcpy(bc_sid->data, &clp->cl_session->sess_id.data, |
153 | NFS4_MAX_SESSIONID_LEN); | 153 | NFS4_MAX_SESSIONID_LEN); |
154 | spin_lock_bh(&serv->sv_cb_lock); | 154 | spin_lock_bh(&serv->sv_cb_lock); |
155 | serv->bc_xprt->xpt_bc_sid = bc_sid; | 155 | serv->sv_bc_xprt->xpt_bc_sid = bc_sid; |
156 | spin_unlock_bh(&serv->sv_cb_lock); | 156 | spin_unlock_bh(&serv->sv_cb_lock); |
157 | dprintk("%s set xpt_bc_sid=%u:%u:%u:%u for bc_xprt %p\n", __func__, | 157 | dprintk("%s set xpt_bc_sid=%u:%u:%u:%u for sv_bc_xprt %p\n", __func__, |
158 | ((u32 *)bc_sid->data)[0], ((u32 *)bc_sid->data)[1], | 158 | ((u32 *)bc_sid->data)[0], ((u32 *)bc_sid->data)[1], |
159 | ((u32 *)bc_sid->data)[2], ((u32 *)bc_sid->data)[3], | 159 | ((u32 *)bc_sid->data)[2], ((u32 *)bc_sid->data)[3], |
160 | serv->bc_xprt); | 160 | serv->sv_bc_xprt); |
161 | return 0; | 161 | return 0; |
162 | } | 162 | } |
163 | 163 | ||
@@ -228,8 +228,8 @@ nfs41_callback_up(struct svc_serv *serv, struct rpc_xprt *xprt) | |||
228 | init_waitqueue_head(&serv->sv_cb_waitq); | 228 | init_waitqueue_head(&serv->sv_cb_waitq); |
229 | rqstp = svc_prepare_thread(serv, &serv->sv_pools[0]); | 229 | rqstp = svc_prepare_thread(serv, &serv->sv_pools[0]); |
230 | if (IS_ERR(rqstp)) { | 230 | if (IS_ERR(rqstp)) { |
231 | svc_xprt_put(serv->bc_xprt); | 231 | svc_xprt_put(serv->sv_bc_xprt); |
232 | serv->bc_xprt = NULL; | 232 | serv->sv_bc_xprt = NULL; |
233 | } | 233 | } |
234 | out: | 234 | out: |
235 | dprintk("--> %s return %ld\n", __func__, | 235 | dprintk("--> %s return %ld\n", __func__, |
diff --git a/include/linux/sunrpc/bc_xprt.h b/include/linux/sunrpc/bc_xprt.h index 2c60e094fdec..c50b458b8a3f 100644 --- a/include/linux/sunrpc/bc_xprt.h +++ b/include/linux/sunrpc/bc_xprt.h | |||
@@ -43,7 +43,7 @@ int bc_send(struct rpc_rqst *req); | |||
43 | */ | 43 | */ |
44 | static inline int svc_is_backchannel(const struct svc_rqst *rqstp) | 44 | static inline int svc_is_backchannel(const struct svc_rqst *rqstp) |
45 | { | 45 | { |
46 | if (rqstp->rq_server->bc_xprt) | 46 | if (rqstp->rq_server->sv_bc_xprt) |
47 | return 1; | 47 | return 1; |
48 | return 0; | 48 | return 0; |
49 | } | 49 | } |
@@ -51,7 +51,7 @@ static inline struct nfs4_sessionid *bc_xprt_sid(struct svc_rqst *rqstp) | |||
51 | { | 51 | { |
52 | if (svc_is_backchannel(rqstp)) | 52 | if (svc_is_backchannel(rqstp)) |
53 | return (struct nfs4_sessionid *) | 53 | return (struct nfs4_sessionid *) |
54 | rqstp->rq_server->bc_xprt->xpt_bc_sid; | 54 | rqstp->rq_server->sv_bc_xprt->xpt_bc_sid; |
55 | return NULL; | 55 | return NULL; |
56 | } | 56 | } |
57 | 57 | ||
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index 5a3085b9b394..c81d4d8be3a9 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h | |||
@@ -99,7 +99,7 @@ struct svc_serv { | |||
99 | spinlock_t sv_cb_lock; /* protects the svc_cb_list */ | 99 | spinlock_t sv_cb_lock; /* protects the svc_cb_list */ |
100 | wait_queue_head_t sv_cb_waitq; /* sleep here if there are no | 100 | wait_queue_head_t sv_cb_waitq; /* sleep here if there are no |
101 | * entries in the svc_cb_list */ | 101 | * entries in the svc_cb_list */ |
102 | struct svc_xprt *bc_xprt; | 102 | struct svc_xprt *sv_bc_xprt; /* callback on fore channel */ |
103 | #endif /* CONFIG_NFS_V4_1 */ | 103 | #endif /* CONFIG_NFS_V4_1 */ |
104 | }; | 104 | }; |
105 | 105 | ||
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index 261e2d1dff10..0e659c665a8d 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c | |||
@@ -1262,7 +1262,7 @@ bc_svc_process(struct svc_serv *serv, struct rpc_rqst *req, | |||
1262 | struct kvec *resv = &rqstp->rq_res.head[0]; | 1262 | struct kvec *resv = &rqstp->rq_res.head[0]; |
1263 | 1263 | ||
1264 | /* Build the svc_rqst used by the common processing routine */ | 1264 | /* Build the svc_rqst used by the common processing routine */ |
1265 | rqstp->rq_xprt = serv->bc_xprt; | 1265 | rqstp->rq_xprt = serv->sv_bc_xprt; |
1266 | rqstp->rq_xid = req->rq_xid; | 1266 | rqstp->rq_xid = req->rq_xid; |
1267 | rqstp->rq_prot = req->rq_xprt->prot; | 1267 | rqstp->rq_prot = req->rq_xprt->prot; |
1268 | rqstp->rq_server = serv; | 1268 | rqstp->rq_server = serv; |
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c index db3013e4aa04..d265aa700bb3 100644 --- a/net/sunrpc/svcsock.c +++ b/net/sunrpc/svcsock.c | |||
@@ -1595,7 +1595,7 @@ static struct svc_xprt *svc_bc_create_socket(struct svc_serv *serv, | |||
1595 | xprt = &svsk->sk_xprt; | 1595 | xprt = &svsk->sk_xprt; |
1596 | svc_xprt_init(&svc_tcp_bc_class, xprt, serv); | 1596 | svc_xprt_init(&svc_tcp_bc_class, xprt, serv); |
1597 | 1597 | ||
1598 | serv->bc_xprt = xprt; | 1598 | serv->sv_bc_xprt = xprt; |
1599 | 1599 | ||
1600 | return xprt; | 1600 | return xprt; |
1601 | } | 1601 | } |