From 04177882265bc5014300a631e7384f8fe6b6aa0f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 12 May 2011 15:33:17 -0700 Subject: libceph: fix TAG_WAIT case If we get a WAIT as a client something went wrong; error out. And don't fall through to an unrelated case. Signed-off-by: Sage Weil --- net/ceph/messenger.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'net/ceph') diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c index 3cdbb8853cd..35c0000a658 100644 --- a/net/ceph/messenger.c +++ b/net/ceph/messenger.c @@ -1355,7 +1355,9 @@ static int process_connect(struct ceph_connection *con) * to WAIT. This shouldn't happen if we are the * client. */ - pr_err("process_connect peer connecting WAIT\n"); + pr_err("process_connect got WAIT as client\n"); + con->error_msg = "protocol error, got WAIT as client"; + return -1; default: pr_err("connect protocol error, will retry\n"); -- cgit v1.2.3-18-g5258