Skip to content

Commit

Permalink
libceph: drop unnecessary CLOSED check in socket state change callback
Browse files Browse the repository at this point in the history
If we are CLOSED, the socket is closed and we won't get these.

Signed-off-by: Sage Weil <sage@inktank.com>
  • Loading branch information
Sage Weil committed Jul 31, 2012
1 parent ee76e07 commit d7353dd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/ceph/messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,6 @@ static void ceph_sock_state_change(struct sock *sk)
dout("%s %p state = %lu sk_state = %u\n", __func__,
con, con->state, sk->sk_state);

if (test_bit(CLOSED, &con->state))
return;

switch (sk->sk_state) {
case TCP_CLOSE:
dout("%s TCP_CLOSE\n", __func__);
Expand Down

0 comments on commit d7353dd

Please sign in to comment.