Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01dba075 authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

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: default avatarJ. Bruce Fields <bfields@redhat.com>
parent ac9303eb
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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