]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
libceph: eliminate connection state "DEAD"
authorAlex Elder <elder@inktank.com>
Tue, 22 May 2012 16:41:43 +0000 (11:41 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 19:38:20 +0000 (11:38 -0800)
(cherry picked from commit e5e372da9a469dfe3ece40277090a7056c566838)

The ceph connection state "DEAD" is never set and is therefore not
needed.  Eliminate it.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/ceph/messenger.h
net/ceph/messenger.c

index 44c87e731e9d4c5fff13cbf851694cd41356fb04..6a1dc80cf1e7e41a55d450ec92ad17610e60f987 100644 (file)
@@ -119,7 +119,6 @@ struct ceph_msg_pos {
 #define CLOSED         10 /* we've closed the connection */
 #define SOCK_CLOSED    11 /* socket state changed to closed */
 #define OPENING         13 /* open connection w/ (possibly new) peer */
-#define DEAD            14 /* dead, about to kfree */
 #define BACKOFF         15
 
 /*
index 0e270166f72f23174b344aefaf60f000616c6b3a..4054adb66513fbe908f63b9c76ff8efa8627385a 100644 (file)
@@ -2091,12 +2091,6 @@ bad_tag:
  */
 static void queue_con(struct ceph_connection *con)
 {
-       if (test_bit(DEAD, &con->state)) {
-               dout("queue_con %p ignoring: DEAD\n",
-                    con);
-               return;
-       }
-
        if (!con->ops->get(con)) {
                dout("queue_con %p ref count 0\n", con);
                return;