summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2012-07-20 17:19:43 -0700
committerSage Weil <sage@inktank.com>2012-07-30 18:15:59 -0700
commitd7353dd5aaf22ed611fbcd0d4a4a12fb30659290 (patch)
tree1f7ce70d3de6ac74bcc1d03e0b2e912c37732bac /net
parentee76e0736db8455e3b11827d6899bd2a4e1d0584 (diff)
downloadlinux-d7353dd5aaf22ed611fbcd0d4a4a12fb30659290.tar.bz2
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')
-rw-r--r--net/ceph/messenger.c3
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__);