|
@@ -66,12 +66,12 @@ static void svc_sock_free(struct svc_xprt *);
|
|
static struct svc_xprt *svc_create_socket(struct svc_serv *, int,
|
|
static struct svc_xprt *svc_create_socket(struct svc_serv *, int,
|
|
struct net *, struct sockaddr *,
|
|
struct net *, struct sockaddr *,
|
|
int, int);
|
|
int, int);
|
|
-#if defined(CONFIG_NFS_V4_1)
|
|
|
|
|
|
+#if defined(CONFIG_SUNRPC_BACKCHANNEL)
|
|
static struct svc_xprt *svc_bc_create_socket(struct svc_serv *, int,
|
|
static struct svc_xprt *svc_bc_create_socket(struct svc_serv *, int,
|
|
struct net *, struct sockaddr *,
|
|
struct net *, struct sockaddr *,
|
|
int, int);
|
|
int, int);
|
|
static void svc_bc_sock_free(struct svc_xprt *xprt);
|
|
static void svc_bc_sock_free(struct svc_xprt *xprt);
|
|
-#endif /* CONFIG_NFS_V4_1 */
|
|
|
|
|
|
+#endif /* CONFIG_SUNRPC_BACKCHANNEL */
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LOCK_ALLOC
|
|
#ifdef CONFIG_DEBUG_LOCK_ALLOC
|
|
static struct lock_class_key svc_key[2];
|
|
static struct lock_class_key svc_key[2];
|
|
@@ -1241,7 +1241,7 @@ static struct svc_xprt *svc_tcp_create(struct svc_serv *serv,
|
|
return svc_create_socket(serv, IPPROTO_TCP, net, sa, salen, flags);
|
|
return svc_create_socket(serv, IPPROTO_TCP, net, sa, salen, flags);
|
|
}
|
|
}
|
|
|
|
|
|
-#if defined(CONFIG_NFS_V4_1)
|
|
|
|
|
|
+#if defined(CONFIG_SUNRPC_BACKCHANNEL)
|
|
static struct svc_xprt *svc_bc_create_socket(struct svc_serv *, int,
|
|
static struct svc_xprt *svc_bc_create_socket(struct svc_serv *, int,
|
|
struct net *, struct sockaddr *,
|
|
struct net *, struct sockaddr *,
|
|
int, int);
|
|
int, int);
|
|
@@ -1282,7 +1282,7 @@ static void svc_cleanup_bc_xprt_sock(void)
|
|
{
|
|
{
|
|
svc_unreg_xprt_class(&svc_tcp_bc_class);
|
|
svc_unreg_xprt_class(&svc_tcp_bc_class);
|
|
}
|
|
}
|
|
-#else /* CONFIG_NFS_V4_1 */
|
|
|
|
|
|
+#else /* CONFIG_SUNRPC_BACKCHANNEL */
|
|
static void svc_init_bc_xprt_sock(void)
|
|
static void svc_init_bc_xprt_sock(void)
|
|
{
|
|
{
|
|
}
|
|
}
|
|
@@ -1290,7 +1290,7 @@ static void svc_init_bc_xprt_sock(void)
|
|
static void svc_cleanup_bc_xprt_sock(void)
|
|
static void svc_cleanup_bc_xprt_sock(void)
|
|
{
|
|
{
|
|
}
|
|
}
|
|
-#endif /* CONFIG_NFS_V4_1 */
|
|
|
|
|
|
+#endif /* CONFIG_SUNRPC_BACKCHANNEL */
|
|
|
|
|
|
static struct svc_xprt_ops svc_tcp_ops = {
|
|
static struct svc_xprt_ops svc_tcp_ops = {
|
|
.xpo_create = svc_tcp_create,
|
|
.xpo_create = svc_tcp_create,
|
|
@@ -1621,7 +1621,7 @@ static void svc_sock_free(struct svc_xprt *xprt)
|
|
kfree(svsk);
|
|
kfree(svsk);
|
|
}
|
|
}
|
|
|
|
|
|
-#if defined(CONFIG_NFS_V4_1)
|
|
|
|
|
|
+#if defined(CONFIG_SUNRPC_BACKCHANNEL)
|
|
/*
|
|
/*
|
|
* Create a back channel svc_xprt which shares the fore channel socket.
|
|
* Create a back channel svc_xprt which shares the fore channel socket.
|
|
*/
|
|
*/
|
|
@@ -1660,4 +1660,4 @@ static void svc_bc_sock_free(struct svc_xprt *xprt)
|
|
if (xprt)
|
|
if (xprt)
|
|
kfree(container_of(xprt, struct svc_sock, sk_xprt));
|
|
kfree(container_of(xprt, struct svc_sock, sk_xprt));
|
|
}
|
|
}
|
|
-#endif /* CONFIG_NFS_V4_1 */
|
|
|
|
|
|
+#endif /* CONFIG_SUNRPC_BACKCHANNEL */
|