Skip to content

Commit 0417788

Browse files
committed
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>
1 parent da39822 commit 0417788

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎net/ceph/messenger.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,9 @@ static int process_connect(struct ceph_connection *con)
13551355
* to WAIT. This shouldn't happen if we are the
13561356
* client.
13571357
*/
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;
13591361

13601362
default:
13611363
pr_err("connect protocol error, will retry\n");

0 commit comments

Comments
 (0)