Commit 6bc5ab13 authored by Tom Tucker's avatar Tom Tucker Committed by J. Bruce Fields

svc: Move accept call to svc_xprt_received to common code

Now that the svc_xprt_received function handles transports, the call
to svc_xprt_received in the xpo_tcp_accept function can be moved to
common code.
Signed-off-by: default avatarTom Tucker <tom@opengridcomputing.com>
Acked-by: default avatarNeil Brown <neilb@suse.de>
Reviewed-by: default avatarChuck Lever <chuck.lever@oracle.com>
Reviewed-by: default avatarGreg Banks <gnb@sgi.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent a6046f71
...@@ -1106,8 +1106,6 @@ static struct svc_xprt *svc_tcp_accept(struct svc_xprt *xprt) ...@@ -1106,8 +1106,6 @@ static struct svc_xprt *svc_tcp_accept(struct svc_xprt *xprt)
} }
memcpy(&newsvsk->sk_local, sin, slen); memcpy(&newsvsk->sk_local, sin, slen);
svc_xprt_received(&newsvsk->sk_xprt);
if (serv->sv_stats) if (serv->sv_stats)
serv->sv_stats->nettcpconn++; serv->sv_stats->nettcpconn++;
...@@ -1591,6 +1589,7 @@ svc_recv(struct svc_rqst *rqstp, long timeout) ...@@ -1591,6 +1589,7 @@ svc_recv(struct svc_rqst *rqstp, long timeout)
*/ */
__module_get(newxpt->xpt_class->xcl_owner); __module_get(newxpt->xpt_class->xcl_owner);
svc_check_conn_limits(svsk->sk_xprt.xpt_server); svc_check_conn_limits(svsk->sk_xprt.xpt_server);
svc_xprt_received(newxpt);
} }
svc_xprt_received(&svsk->sk_xprt); svc_xprt_received(&svsk->sk_xprt);
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment