diff options
author | Sage Weil <sage@inktank.com> | 2012-07-20 17:19:43 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-07-30 18:15:59 -0700 |
commit | d7353dd5aaf22ed611fbcd0d4a4a12fb30659290 (patch) | |
tree | 1f7ce70d3de6ac74bcc1d03e0b2e912c37732bac /net/ceph | |
parent | ee76e0736db8455e3b11827d6899bd2a4e1d0584 (diff) | |
download | linux-3.10-d7353dd5aaf22ed611fbcd0d4a4a12fb30659290.tar.gz linux-3.10-d7353dd5aaf22ed611fbcd0d4a4a12fb30659290.tar.bz2 linux-3.10-d7353dd5aaf22ed611fbcd0d4a4a12fb30659290.zip |
libceph: drop unnecessary CLOSED check in socket state change callback
If we are CLOSED, the socket is closed and we won't get these.
Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'net/ceph')
-rw-r--r-- | net/ceph/messenger.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c index 46ce113732e..e7320cd5fdb 100644 --- a/net/ceph/messenger.c +++ b/net/ceph/messenger.c @@ -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__); |