From: J. Bruce Fields Date: Tue, 14 Aug 2012 19:27:23 +0000 (-0400) Subject: svcrpc: make svc_create_xprt enqueue on clearing XPT_BUSY X-Git-Tag: v3.7-rc1~24^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c3341966943284ab3618a1814cefd693ad9aa736;p=profile%2Fivi%2Fkernel-x86-ivi.git svcrpc: make svc_create_xprt enqueue on clearing XPT_BUSY Whenever we clear XPT_BUSY we should call svc_xprt_enqueue(). Without that we may fail to notice any events (such as new connections) that arrived while XPT_BUSY was set. Signed-off-by: J. Bruce Fields --- diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c index e1810b9..4801fda 100644 --- a/net/sunrpc/svc_xprt.c +++ b/net/sunrpc/svc_xprt.c @@ -238,7 +238,7 @@ int svc_create_xprt(struct svc_serv *serv, const char *xprt_name, list_add(&newxprt->xpt_list, &serv->sv_permsocks); spin_unlock_bh(&serv->sv_lock); newport = svc_xprt_local_port(newxprt); - clear_bit(XPT_BUSY, &newxprt->xpt_flags); + svc_xprt_received(newxprt); return newport; } err: