aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtsock.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r--net/sunrpc/xprtsock.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index 6fa52f44de0f..abb40c140738 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -1122,10 +1122,7 @@ static void xs_tcp_state_change(struct sock *sk)
1122 case TCP_SYN_RECV: 1122 case TCP_SYN_RECV:
1123 break; 1123 break;
1124 case TCP_CLOSE_WAIT: 1124 case TCP_CLOSE_WAIT:
1125 /* Try to schedule an autoclose RPC calls */ 1125 xprt_force_disconnect(xprt);
1126 set_bit(XPRT_CLOSE_WAIT, &xprt->state);
1127 if (test_and_set_bit(XPRT_LOCKED, &xprt->state) == 0)
1128 queue_work(rpciod_workqueue, &xprt->task_cleanup);
1129 default: 1126 default:
1130 xprt_disconnect(xprt); 1127 xprt_disconnect(xprt);
1131 } 1128 }