diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-19 19:11:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-19 19:11:28 -0400 |
commit | 85efc72a0218335324d358ac479a04c16316fd4d (patch) | |
tree | d3299ad27ca32e7aa73e4850c8ac58aae7c97434 /net | |
parent | 3e4b9459fb0e149c6b74c9e89399a8fc39a92b44 (diff) | |
parent | 6a3ca4f18873f950895cb64ddefafb51a732e3f7 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
Pull last minute Ceph fixes from Sage Weil:
"The important one fixes a bug in the socket failure handling behavior
that was turned up in some recent failure injection testing. The
other two are minor bug fixes."
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client:
rbd: endian bug in rbd_req_cb()
rbd: Fix ceph_snap_context size calculation
libceph: fix messenger retry
Diffstat (limited to 'net')
-rw-r--r-- | net/ceph/messenger.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c index b332c3d76059..10255e81be79 100644 --- a/net/ceph/messenger.c +++ b/net/ceph/messenger.c | |||
@@ -1423,7 +1423,7 @@ static int process_connect(struct ceph_connection *con) | |||
1423 | * dropped messages. | 1423 | * dropped messages. |
1424 | */ | 1424 | */ |
1425 | dout("process_connect got RESET peer seq %u\n", | 1425 | dout("process_connect got RESET peer seq %u\n", |
1426 | le32_to_cpu(con->in_connect.connect_seq)); | 1426 | le32_to_cpu(con->in_reply.connect_seq)); |
1427 | pr_err("%s%lld %s connection reset\n", | 1427 | pr_err("%s%lld %s connection reset\n", |
1428 | ENTITY_NAME(con->peer_name), | 1428 | ENTITY_NAME(con->peer_name), |
1429 | ceph_pr_addr(&con->peer_addr.in_addr)); | 1429 | ceph_pr_addr(&con->peer_addr.in_addr)); |
@@ -1450,10 +1450,10 @@ static int process_connect(struct ceph_connection *con) | |||
1450 | * If we sent a smaller connect_seq than the peer has, try | 1450 | * If we sent a smaller connect_seq than the peer has, try |
1451 | * again with a larger value. | 1451 | * again with a larger value. |
1452 | */ | 1452 | */ |
1453 | dout("process_connect got RETRY my seq = %u, peer_seq = %u\n", | 1453 | dout("process_connect got RETRY_SESSION my seq %u, peer %u\n", |
1454 | le32_to_cpu(con->out_connect.connect_seq), | 1454 | le32_to_cpu(con->out_connect.connect_seq), |
1455 | le32_to_cpu(con->in_connect.connect_seq)); | 1455 | le32_to_cpu(con->in_reply.connect_seq)); |
1456 | con->connect_seq = le32_to_cpu(con->in_connect.connect_seq); | 1456 | con->connect_seq = le32_to_cpu(con->in_reply.connect_seq); |
1457 | ceph_con_out_kvec_reset(con); | 1457 | ceph_con_out_kvec_reset(con); |
1458 | ret = prepare_write_connect(con); | 1458 | ret = prepare_write_connect(con); |
1459 | if (ret < 0) | 1459 | if (ret < 0) |
@@ -1468,9 +1468,9 @@ static int process_connect(struct ceph_connection *con) | |||
1468 | */ | 1468 | */ |
1469 | dout("process_connect got RETRY_GLOBAL my %u peer_gseq %u\n", | 1469 | dout("process_connect got RETRY_GLOBAL my %u peer_gseq %u\n", |
1470 | con->peer_global_seq, | 1470 | con->peer_global_seq, |
1471 | le32_to_cpu(con->in_connect.global_seq)); | 1471 | le32_to_cpu(con->in_reply.global_seq)); |
1472 | get_global_seq(con->msgr, | 1472 | get_global_seq(con->msgr, |
1473 | le32_to_cpu(con->in_connect.global_seq)); | 1473 | le32_to_cpu(con->in_reply.global_seq)); |
1474 | ceph_con_out_kvec_reset(con); | 1474 | ceph_con_out_kvec_reset(con); |
1475 | ret = prepare_write_connect(con); | 1475 | ret = prepare_write_connect(con); |
1476 | if (ret < 0) | 1476 | if (ret < 0) |