diff options
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r-- | net/sunrpc/xprtsock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 4ef3a6a9445c..f9964ef35e3e 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -1680,7 +1680,7 @@ static void xs_udp_connect_worker4(struct work_struct *work) | |||
1680 | /* Start by resetting any existing state */ | 1680 | /* Start by resetting any existing state */ |
1681 | xs_reset_transport(transport); | 1681 | xs_reset_transport(transport); |
1682 | 1682 | ||
1683 | err = sock_create_kern(PF_INET, SOCK_DGRAM, IPPROTO_UDP, &sock); | 1683 | err = __sock_create(xprt->xprt_net, PF_INET, SOCK_DGRAM, IPPROTO_UDP, &sock, 1); |
1684 | if (err < 0) { | 1684 | if (err < 0) { |
1685 | dprintk("RPC: can't create UDP transport socket (%d).\n", -err); | 1685 | dprintk("RPC: can't create UDP transport socket (%d).\n", -err); |
1686 | goto out; | 1686 | goto out; |
@@ -1725,7 +1725,7 @@ static void xs_udp_connect_worker6(struct work_struct *work) | |||
1725 | /* Start by resetting any existing state */ | 1725 | /* Start by resetting any existing state */ |
1726 | xs_reset_transport(transport); | 1726 | xs_reset_transport(transport); |
1727 | 1727 | ||
1728 | err = sock_create_kern(PF_INET6, SOCK_DGRAM, IPPROTO_UDP, &sock); | 1728 | err = __sock_create(xprt->xprt_net, PF_INET6, SOCK_DGRAM, IPPROTO_UDP, &sock, 1); |
1729 | if (err < 0) { | 1729 | if (err < 0) { |
1730 | dprintk("RPC: can't create UDP transport socket (%d).\n", -err); | 1730 | dprintk("RPC: can't create UDP transport socket (%d).\n", -err); |
1731 | goto out; | 1731 | goto out; |
@@ -1931,7 +1931,7 @@ static struct socket *xs_create_tcp_sock4(struct rpc_xprt *xprt, | |||
1931 | int err; | 1931 | int err; |
1932 | 1932 | ||
1933 | /* start from scratch */ | 1933 | /* start from scratch */ |
1934 | err = sock_create_kern(PF_INET, SOCK_STREAM, IPPROTO_TCP, &sock); | 1934 | err = __sock_create(xprt->xprt_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, &sock, 1); |
1935 | if (err < 0) { | 1935 | if (err < 0) { |
1936 | dprintk("RPC: can't create TCP transport socket (%d).\n", | 1936 | dprintk("RPC: can't create TCP transport socket (%d).\n", |
1937 | -err); | 1937 | -err); |
@@ -1970,7 +1970,7 @@ static struct socket *xs_create_tcp_sock6(struct rpc_xprt *xprt, | |||
1970 | int err; | 1970 | int err; |
1971 | 1971 | ||
1972 | /* start from scratch */ | 1972 | /* start from scratch */ |
1973 | err = sock_create_kern(PF_INET6, SOCK_STREAM, IPPROTO_TCP, &sock); | 1973 | err = __sock_create(xprt->xprt_net, PF_INET6, SOCK_STREAM, IPPROTO_TCP, &sock, 1); |
1974 | if (err < 0) { | 1974 | if (err < 0) { |
1975 | dprintk("RPC: can't create TCP transport socket (%d).\n", | 1975 | dprintk("RPC: can't create TCP transport socket (%d).\n", |
1976 | -err); | 1976 | -err); |