diff options
author | Sage Weil <sage@inktank.com> | 2012-07-21 02:19:43 +0200 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-07-31 03:15:59 +0200 |
commit | d7353dd5aaf22ed611fbcd0d4a4a12fb30659290 (patch) | |
tree | 1f7ce70d3de6ac74bcc1d03e0b2e912c37732bac /net/ceph | |
parent | libceph: close socket directly from ceph_con_close() (diff) | |
download | linux-d7353dd5aaf22ed611fbcd0d4a4a12fb30659290.tar.xz linux-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 46ce113732e6..e7320cd5fdbc 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__); |