All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libceph: fix protocol feature mismatch failure path
@ 2012-12-28  0:07 Sage Weil
  2012-12-28  0:30 ` Alex Elder
  0 siblings, 1 reply; 3+ messages in thread
From: Sage Weil @ 2012-12-28  0:07 UTC (permalink / raw)
  To: ceph-devel; +Cc: Sage Weil

We should not set con->state to CLOSED here; that happens in ceph_fault()
in the caller, where it first asserts that the state is not yet CLOSED.
Avoids a BUG when the features don't match.

Signed-off-by: Sage Weil <sage@inktank.com>
---
 net/ceph/messenger.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c
index 4d111fd..24a5c86 100644
--- a/net/ceph/messenger.c
+++ b/net/ceph/messenger.c
@@ -1508,9 +1508,9 @@ static int process_banner(struct ceph_connection *con)
 
 static void fail_protocol(struct ceph_connection *con)
 {
+	dout("fail_protocol %p\n", con);
 	reset_connection(con);
 	BUG_ON(con->state != CON_STATE_NEGOTIATING);
-	con->state = CON_STATE_CLOSED;
 }
 
 static int process_connect(struct ceph_connection *con)
-- 
1.7.9


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-12-28  0:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-28  0:07 [PATCH] libceph: fix protocol feature mismatch failure path Sage Weil
2012-12-28  0:30 ` Alex Elder
2012-12-28  0:33   ` Sage Weil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.