From: J. Bruce Fields Date: Sat, 23 Oct 2010 15:23:46 +0000 (-0400) Subject: svcrpc: no need for XPT_DEAD check in svc_xprt_enqueue X-Git-Tag: v2.6.37-rc1~113^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=01dba075d571f5a8b7dcb153fdfd14e981c4cee3;p=profile%2Fcommon%2Fkernel-common.git svcrpc: no need for XPT_DEAD check in svc_xprt_enqueue If any xprt marked DEAD is also left BUSY for the rest of its life, then the XPT_DEAD check here is superfluous--we'll get the same result from the XPT_BUSY check just after. Signed-off-by: J. Bruce Fields --- diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c index c65a472..c82fe73 100644 --- a/net/sunrpc/svc_xprt.c +++ b/net/sunrpc/svc_xprt.c @@ -330,12 +330,6 @@ void svc_xprt_enqueue(struct svc_xprt *xprt) "svc_xprt_enqueue: " "threads and transports both waiting??\n"); - if (test_bit(XPT_DEAD, &xprt->xpt_flags)) { - /* Don't enqueue dead transports */ - dprintk("svc: transport %p is dead, not enqueued\n", xprt); - goto out_unlock; - } - pool->sp_stats.packets++; /* Mark transport as busy. It will remain in this state until