diff options
| author | Sage Weil <sage@inktank.com> | 2012-07-20 20:30:40 -0400 |
|---|---|---|
| committer | Sage Weil <sage@inktank.com> | 2012-07-30 21:16:02 -0400 |
| commit | 43c7427d100769451601b8a36988ac0528ce0124 (patch) | |
| tree | b2105d55b3d88f37aa89df0d6a3730ebf85e4676 | |
| parent | 4a8616920860920abaa51193146fe36b38ef09aa (diff) | |
libceph: clear all flags on con_close
Signed-off-by: Sage Weil <sage@inktank.com>
| -rw-r--r-- | net/ceph/messenger.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c index b872db5c4989..fa16f2cc35fe 100644 --- a/net/ceph/messenger.c +++ b/net/ceph/messenger.c | |||
| @@ -528,6 +528,8 @@ void ceph_con_close(struct ceph_connection *con) | |||
| 528 | clear_bit(CON_FLAG_LOSSYTX, &con->flags); /* so we retry next connect */ | 528 | clear_bit(CON_FLAG_LOSSYTX, &con->flags); /* so we retry next connect */ |
| 529 | clear_bit(CON_FLAG_KEEPALIVE_PENDING, &con->flags); | 529 | clear_bit(CON_FLAG_KEEPALIVE_PENDING, &con->flags); |
| 530 | clear_bit(CON_FLAG_WRITE_PENDING, &con->flags); | 530 | clear_bit(CON_FLAG_WRITE_PENDING, &con->flags); |
| 531 | clear_bit(CON_FLAG_KEEPALIVE_PENDING, &con->flags); | ||
| 532 | clear_bit(CON_FLAG_BACKOFF, &con->flags); | ||
| 531 | 533 | ||
| 532 | reset_connection(con); | 534 | reset_connection(con); |
| 533 | con->peer_global_seq = 0; | 535 | con->peer_global_seq = 0; |
