diff options
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r-- | net/sunrpc/xprtsock.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index a4c06900f398..9b06b8b2a112 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -774,10 +774,10 @@ static void xs_close(struct rpc_xprt *xprt) | |||
774 | sock_release(sock); | 774 | sock_release(sock); |
775 | clear_close_wait: | 775 | clear_close_wait: |
776 | smp_mb__before_clear_bit(); | 776 | smp_mb__before_clear_bit(); |
777 | clear_bit(XPRT_CONNECTED, &xprt->state); | ||
778 | clear_bit(XPRT_CLOSE_WAIT, &xprt->state); | 777 | clear_bit(XPRT_CLOSE_WAIT, &xprt->state); |
779 | clear_bit(XPRT_CLOSING, &xprt->state); | 778 | clear_bit(XPRT_CLOSING, &xprt->state); |
780 | smp_mb__after_clear_bit(); | 779 | smp_mb__after_clear_bit(); |
780 | xprt_disconnect(xprt); | ||
781 | } | 781 | } |
782 | 782 | ||
783 | /** | 783 | /** |
@@ -793,7 +793,6 @@ static void xs_destroy(struct rpc_xprt *xprt) | |||
793 | 793 | ||
794 | cancel_rearming_delayed_work(&transport->connect_worker); | 794 | cancel_rearming_delayed_work(&transport->connect_worker); |
795 | 795 | ||
796 | xprt_disconnect(xprt); | ||
797 | xs_close(xprt); | 796 | xs_close(xprt); |
798 | xs_free_peer_addresses(xprt); | 797 | xs_free_peer_addresses(xprt); |
799 | kfree(xprt->slot); | 798 | kfree(xprt->slot); |