diff options
Diffstat (limited to 'net/rds/tcp_connect.c')
-rw-r--r-- | net/rds/tcp_connect.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/net/rds/tcp_connect.c b/net/rds/tcp_connect.c index ba9ec67f4e41..96c2c4d17909 100644 --- a/net/rds/tcp_connect.c +++ b/net/rds/tcp_connect.c | |||
@@ -55,20 +55,20 @@ void rds_tcp_state_change(struct sock *sk) | |||
55 | 55 | ||
56 | rdsdebug("sock %p state_change to %d\n", tc->t_sock, sk->sk_state); | 56 | rdsdebug("sock %p state_change to %d\n", tc->t_sock, sk->sk_state); |
57 | 57 | ||
58 | switch(sk->sk_state) { | 58 | switch (sk->sk_state) { |
59 | /* ignore connecting sockets as they make progress */ | 59 | /* ignore connecting sockets as they make progress */ |
60 | case TCP_SYN_SENT: | 60 | case TCP_SYN_SENT: |
61 | case TCP_SYN_RECV: | 61 | case TCP_SYN_RECV: |
62 | break; | 62 | break; |
63 | case TCP_ESTABLISHED: | 63 | case TCP_ESTABLISHED: |
64 | rds_connect_path_complete(&conn->c_path[0], | 64 | rds_connect_path_complete(&conn->c_path[0], |
65 | RDS_CONN_CONNECTING); | 65 | RDS_CONN_CONNECTING); |
66 | break; | 66 | break; |
67 | case TCP_CLOSE_WAIT: | 67 | case TCP_CLOSE_WAIT: |
68 | case TCP_CLOSE: | 68 | case TCP_CLOSE: |
69 | rds_conn_drop(conn); | 69 | rds_conn_drop(conn); |
70 | default: | 70 | default: |
71 | break; | 71 | break; |
72 | } | 72 | } |
73 | out: | 73 | out: |
74 | read_unlock_bh(&sk->sk_callback_lock); | 74 | read_unlock_bh(&sk->sk_callback_lock); |