Revert "sunrpc: fix peername failed on closed listener"
This reverts commitb292cf9ce7
. The commit that it attempted to patch up,b0401d7253
, was fundamentally wrong, and will also be reverted. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
This commit is contained in:
@@ -706,8 +706,7 @@ int svc_recv(struct svc_rqst *rqstp, long timeout)
|
|||||||
spin_unlock_bh(&pool->sp_lock);
|
spin_unlock_bh(&pool->sp_lock);
|
||||||
|
|
||||||
len = 0;
|
len = 0;
|
||||||
if (test_bit(XPT_LISTENER, &xprt->xpt_flags) &&
|
if (test_bit(XPT_LISTENER, &xprt->xpt_flags)) {
|
||||||
!test_bit(XPT_CLOSE, &xprt->xpt_flags)) {
|
|
||||||
struct svc_xprt *newxpt;
|
struct svc_xprt *newxpt;
|
||||||
newxpt = xprt->xpt_ops->xpo_accept(xprt);
|
newxpt = xprt->xpt_ops->xpo_accept(xprt);
|
||||||
if (newxpt) {
|
if (newxpt) {
|
||||||
|
Reference in New Issue
Block a user