Sfoglia il codice sorgente

SUNRPC: xs_sock_mark_closed() does not need to trigger socket autoclose

Under all conditions, it should be quite sufficient just to mark
the socket as disconnected. It will then be closed by the
transport shutdown or reconnect code.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Trond Myklebust 10 anni fa
parent
commit
4b0ab51db3
1 ha cambiato i file con 0 aggiunte e 1 eliminazioni
  1. 0 1
      net/sunrpc/xprtsock.c

+ 0 - 1
net/sunrpc/xprtsock.c

@@ -777,7 +777,6 @@ static void xs_sock_mark_closed(struct rpc_xprt *xprt)
 	xs_sock_reset_connection_flags(xprt);
 	/* Mark transport as closed and wake up all pending tasks */
 	xprt_disconnect_done(xprt);
-	xprt_force_disconnect(xprt);
 }
 
 /**