From: Alex Elder Date: Fri, 1 Jun 2012 19:56:43 +0000 (-0500) Subject: libceph: have messages point to their connection X-Git-Tag: v3.6-rc1~36^2~113 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38941f8031bf042dba3ced6394ba3a3b16c244ea;p=pandora-kernel.git libceph: have messages point to their connection When a ceph message is queued for sending it is placed on a list of pending messages (ceph_connection->out_queue). When they are actually sent over the wire, they are moved from that list to another (ceph_connection->out_sent). When acknowledgement for the message is received, it is removed from the sent messages list. During that entire time the message is "in the possession" of a single ceph connection. Keep track of that connection in the message. This will be used in the next patch (and is a helpful bit of information for debugging anyway). Signed-off-by: Alex Elder Reviewed-by: Sage Weil --- Reading git-diff-tree failed