Skip to content

Commit

Permalink
svcrpc: assume svc_delete_xprt() called only once
Browse files Browse the repository at this point in the history
As long as DEAD exports are left BUSY, and svc_delete_xprt is called
only with BUSY held, then svc_delete_xprt() will never be called on an
xprt that is already DEAD.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
J. Bruce Fields committed Oct 25, 2010
1 parent 7e4fdd0 commit ac9303e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sunrpc/svc_xprt.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ void svc_delete_xprt(struct svc_xprt *xprt)

/* Only do this once */
if (test_and_set_bit(XPT_DEAD, &xprt->xpt_flags))
return;
BUG();

dprintk("svc: svc_delete_xprt(%p)\n", xprt);
xprt->xpt_ops->xpo_detach(xprt);
Expand Down

0 comments on commit ac9303e

Please sign in to comment.