diff options
-rw-r--r-- | fs/ceph/messenger.c | 3 | ||||
-rw-r--r-- | fs/ceph/messenger.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/fs/ceph/messenger.c b/fs/ceph/messenger.c index 0ddc2c75f6b4..bf4590c77cf6 100644 --- a/fs/ceph/messenger.c +++ b/fs/ceph/messenger.c | |||
@@ -342,6 +342,9 @@ void ceph_con_close(struct ceph_connection *con) | |||
342 | dout("con_close %p peer %s\n", con, pr_addr(&con->peer_addr.in_addr)); | 342 | dout("con_close %p peer %s\n", con, pr_addr(&con->peer_addr.in_addr)); |
343 | set_bit(CLOSED, &con->state); /* in case there's queued work */ | 343 | set_bit(CLOSED, &con->state); /* in case there's queued work */ |
344 | clear_bit(STANDBY, &con->state); /* avoid connect_seq bump */ | 344 | clear_bit(STANDBY, &con->state); /* avoid connect_seq bump */ |
345 | clear_bit(LOSSYTX, &con->state); /* so we retry next connect */ | ||
346 | clear_bit(KEEPALIVE_PENDING, &con->state); | ||
347 | clear_bit(WRITE_PENDING, &con->state); | ||
345 | mutex_lock(&con->mutex); | 348 | mutex_lock(&con->mutex); |
346 | reset_connection(con); | 349 | reset_connection(con); |
347 | cancel_delayed_work(&con->work); | 350 | cancel_delayed_work(&con->work); |
diff --git a/fs/ceph/messenger.h b/fs/ceph/messenger.h index c9735378be3f..4caaa5911110 100644 --- a/fs/ceph/messenger.h +++ b/fs/ceph/messenger.h | |||
@@ -119,7 +119,6 @@ struct ceph_msg_pos { | |||
119 | * state with the peer. */ | 119 | * state with the peer. */ |
120 | #define CLOSED 10 /* we've closed the connection */ | 120 | #define CLOSED 10 /* we've closed the connection */ |
121 | #define SOCK_CLOSED 11 /* socket state changed to closed */ | 121 | #define SOCK_CLOSED 11 /* socket state changed to closed */ |
122 | #define REGISTERED 12 /* connection appears in con_tree */ | ||
123 | #define OPENING 13 /* open connection w/ (possibly new) peer */ | 122 | #define OPENING 13 /* open connection w/ (possibly new) peer */ |
124 | #define DEAD 14 /* dead, about to kfree */ | 123 | #define DEAD 14 /* dead, about to kfree */ |
125 | 124 | ||