Skip to content

Commit

Permalink
svc: Remove extra check for XPT_DEAD bit in svc_xprt_enqueue
Browse files Browse the repository at this point in the history
Remove a redundant check for the XPT_DEAD bit in the svc_xprt_enqueue
function. This same bit is checked below while holding the pool lock
and prints a debug message if found to be dead.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
  • Loading branch information
Tom Tucker committed May 19, 2008
1 parent b8291ad commit fc63a05
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/sunrpc/svc_xprt.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,6 @@ void svc_xprt_enqueue(struct svc_xprt *xprt)
if (!(xprt->xpt_flags &
((1<<XPT_CONN)|(1<<XPT_DATA)|(1<<XPT_CLOSE)|(1<<XPT_DEFERRED))))
return;
if (test_bit(XPT_DEAD, &xprt->xpt_flags))
return;

cpu = get_cpu();
pool = svc_pool_for_cpu(xprt->xpt_server, cpu);
Expand Down

0 comments on commit fc63a05

Please sign in to comment.