提交 ac9303eb 编写于 作者: J J. Bruce Fields

svcrpc: assume svc_delete_xprt() called only once

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: NJ. Bruce Fields <bfields@redhat.com>
上级 7e4fdd07
...@@ -903,7 +903,7 @@ void svc_delete_xprt(struct svc_xprt *xprt) ...@@ -903,7 +903,7 @@ void svc_delete_xprt(struct svc_xprt *xprt)
/* Only do this once */ /* Only do this once */
if (test_and_set_bit(XPT_DEAD, &xprt->xpt_flags)) if (test_and_set_bit(XPT_DEAD, &xprt->xpt_flags))
return; BUG();
dprintk("svc: svc_delete_xprt(%p)\n", xprt); dprintk("svc: svc_delete_xprt(%p)\n", xprt);
xprt->xpt_ops->xpo_detach(xprt); xprt->xpt_ops->xpo_detach(xprt);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册