diff options
author | Sage Weil <sage@newdream.net> | 2011-05-12 18:33:17 -0400 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-05-19 14:25:04 -0400 |
commit | 04177882265bc5014300a631e7384f8fe6b6aa0f (patch) | |
tree | a008861b5c815be69cd4a6a074369359afd27904 /net | |
parent | da39822c6565095a0151ccf9d6b95e2ae5612885 (diff) |
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 <sage@newdream.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ceph/messenger.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) | |||
1355 | * to WAIT. This shouldn't happen if we are the | 1355 | * to WAIT. This shouldn't happen if we are the |
1356 | * client. | 1356 | * client. |
1357 | */ | 1357 | */ |
1358 | pr_err("process_connect peer connecting WAIT\n"); | 1358 | pr_err("process_connect got WAIT as client\n"); |
1359 | con->error_msg = "protocol error, got WAIT as client"; | ||
1360 | return -1; | ||
1359 | 1361 | ||
1360 | default: | 1362 | default: |
1361 | pr_err("connect protocol error, will retry\n"); | 1363 | pr_err("connect protocol error, will retry\n"); |