Loading net/sunrpc/svcsock.c +15 −8 Original line number Diff line number Diff line Loading @@ -109,10 +109,12 @@ static void svc_reclassify_socket(struct socket *sock) } #endif /* * Release an skbuff after use /** * svc_tcp_release_rqst - Release transport-related resources * @rqstp: request structure with resources to be released * */ static void svc_release_skb(struct svc_rqst *rqstp) static void svc_tcp_release_rqst(struct svc_rqst *rqstp) { struct sk_buff *skb = rqstp->rq_xprt_ctxt; Loading @@ -125,7 +127,12 @@ static void svc_release_skb(struct svc_rqst *rqstp) } } static void svc_release_udp_skb(struct svc_rqst *rqstp) /** * svc_udp_release_rqst - Release transport-related resources * @rqstp: request structure with resources to be released * */ static void svc_udp_release_rqst(struct svc_rqst *rqstp) { struct sk_buff *skb = rqstp->rq_xprt_ctxt; Loading Loading @@ -521,7 +528,7 @@ static int svc_udp_sendto(struct svc_rqst *rqstp) unsigned int uninitialized_var(sent); int err; svc_release_udp_skb(rqstp); svc_udp_release_rqst(rqstp); svc_set_cmsg_data(rqstp, cmh); Loading Loading @@ -590,7 +597,7 @@ static const struct svc_xprt_ops svc_udp_ops = { .xpo_recvfrom = svc_udp_recvfrom, .xpo_sendto = svc_udp_sendto, .xpo_read_payload = svc_sock_read_payload, .xpo_release_rqst = svc_release_udp_skb, .xpo_release_rqst = svc_udp_release_rqst, .xpo_detach = svc_sock_detach, .xpo_free = svc_sock_free, .xpo_has_wspace = svc_udp_has_wspace, Loading Loading @@ -1053,7 +1060,7 @@ static int svc_tcp_sendto(struct svc_rqst *rqstp) unsigned int uninitialized_var(sent); int err; svc_release_skb(rqstp); svc_tcp_release_rqst(rqstp); mutex_lock(&xprt->xpt_mutex); if (svc_xprt_is_dead(xprt)) Loading Loading @@ -1093,7 +1100,7 @@ static const struct svc_xprt_ops svc_tcp_ops = { .xpo_recvfrom = svc_tcp_recvfrom, .xpo_sendto = svc_tcp_sendto, .xpo_read_payload = svc_sock_read_payload, .xpo_release_rqst = svc_release_skb, .xpo_release_rqst = svc_tcp_release_rqst, .xpo_detach = svc_tcp_sock_detach, .xpo_free = svc_sock_free, .xpo_has_wspace = svc_tcp_has_wspace, Loading Loading
net/sunrpc/svcsock.c +15 −8 Original line number Diff line number Diff line Loading @@ -109,10 +109,12 @@ static void svc_reclassify_socket(struct socket *sock) } #endif /* * Release an skbuff after use /** * svc_tcp_release_rqst - Release transport-related resources * @rqstp: request structure with resources to be released * */ static void svc_release_skb(struct svc_rqst *rqstp) static void svc_tcp_release_rqst(struct svc_rqst *rqstp) { struct sk_buff *skb = rqstp->rq_xprt_ctxt; Loading @@ -125,7 +127,12 @@ static void svc_release_skb(struct svc_rqst *rqstp) } } static void svc_release_udp_skb(struct svc_rqst *rqstp) /** * svc_udp_release_rqst - Release transport-related resources * @rqstp: request structure with resources to be released * */ static void svc_udp_release_rqst(struct svc_rqst *rqstp) { struct sk_buff *skb = rqstp->rq_xprt_ctxt; Loading Loading @@ -521,7 +528,7 @@ static int svc_udp_sendto(struct svc_rqst *rqstp) unsigned int uninitialized_var(sent); int err; svc_release_udp_skb(rqstp); svc_udp_release_rqst(rqstp); svc_set_cmsg_data(rqstp, cmh); Loading Loading @@ -590,7 +597,7 @@ static const struct svc_xprt_ops svc_udp_ops = { .xpo_recvfrom = svc_udp_recvfrom, .xpo_sendto = svc_udp_sendto, .xpo_read_payload = svc_sock_read_payload, .xpo_release_rqst = svc_release_udp_skb, .xpo_release_rqst = svc_udp_release_rqst, .xpo_detach = svc_sock_detach, .xpo_free = svc_sock_free, .xpo_has_wspace = svc_udp_has_wspace, Loading Loading @@ -1053,7 +1060,7 @@ static int svc_tcp_sendto(struct svc_rqst *rqstp) unsigned int uninitialized_var(sent); int err; svc_release_skb(rqstp); svc_tcp_release_rqst(rqstp); mutex_lock(&xprt->xpt_mutex); if (svc_xprt_is_dead(xprt)) Loading Loading @@ -1093,7 +1100,7 @@ static const struct svc_xprt_ops svc_tcp_ops = { .xpo_recvfrom = svc_tcp_recvfrom, .xpo_sendto = svc_tcp_sendto, .xpo_read_payload = svc_sock_read_payload, .xpo_release_rqst = svc_release_skb, .xpo_release_rqst = svc_tcp_release_rqst, .xpo_detach = svc_tcp_sock_detach, .xpo_free = svc_sock_free, .xpo_has_wspace = svc_tcp_has_wspace, Loading