浏览代码

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>
Sage Weil 13 年之前
父节点
当前提交
d7353dd5aa
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      net/ceph/messenger.c

+ 0 - 3
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__);