aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2010-02-28 16:32:51 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-04-01 19:01:34 -0400
commitc08a8108a40a68a0a9bda6d32af820a6af25c6bd (patch)
tree2081a61d6d5bcd2f06455eed74a21425a14fe9fc /net
parent7823ec3aa5ba160848974fc37a82ccf524d7ea9c (diff)
Revert "sunrpc: fix peername failed on closed listener"
commit f5822754ea006563e1bf0a1f43faaad49c0d8bb2 upstream. This reverts commit b292cf9ce70d221c3f04ff62db5ab13d9a249ca8. The commit that it attempted to patch up, b0401d725334a94d57335790b8ac2404144748ee, was fundamentally wrong, and will also be reverted. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/svc_xprt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c
index 4f303360b565..d6d7df1e4a50 100644
--- a/net/sunrpc/svc_xprt.c
+++ b/net/sunrpc/svc_xprt.c
@@ -699,8 +699,7 @@ int svc_recv(struct svc_rqst *rqstp, long timeout)
699 spin_unlock_bh(&pool->sp_lock); 699 spin_unlock_bh(&pool->sp_lock);
700 700
701 len = 0; 701 len = 0;
702 if (test_bit(XPT_LISTENER, &xprt->xpt_flags) && 702 if (test_bit(XPT_LISTENER, &xprt->xpt_flags)) {
703 !test_bit(XPT_CLOSE, &xprt->xpt_flags)) {
704 struct svc_xprt *newxpt; 703 struct svc_xprt *newxpt;
705 newxpt = xprt->xpt_ops->xpo_accept(xprt); 704 newxpt = xprt->xpt_ops->xpo_accept(xprt);
706 if (newxpt) { 705 if (newxpt) {