···161161 struct list_head out_queue;162162 struct list_head out_sent; /* sending or sent but unacked */163163 u64 out_seq; /* last message queued for send */164164- bool out_keepalive_pending;165164166165 u64 in_seq, in_seq_acked; /* last message received, acked */167166
+4-5
net/ceph/messenger.c
···336336 ceph_msg_put(con->out_msg);337337 con->out_msg = NULL;338338 }339339- con->out_keepalive_pending = false;340339 con->in_seq = 0;341340 con->in_seq_acked = 0;342341}···20182019 /* Requeue anything that hasn't been acked */20192020 list_splice_init(&con->out_sent, &con->out_queue);2020202120212021- /* If there are no messages in the queue, place the connection20222022- * in a STANDBY state (i.e., don't try to reconnect just yet). */20232023- if (list_empty(&con->out_queue) && !con->out_keepalive_pending) {20242024- dout("fault setting STANDBY\n");20222022+ /* If there are no messages queued or keepalive pending, place20232023+ * the connection in a STANDBY state */20242024+ if (list_empty(&con->out_queue) &&20252025+ !test_bit(KEEPALIVE_PENDING, &con->state)) {20252026 set_bit(STANDBY, &con->state);20262027 } else {20272028 /* retry after a delay. */