From: Jim Schutt Date: Fri, 16 Sep 2011 14:27:31 +0000 (-0600) Subject: libceph: initialize ack_stamp to avoid unnecessary connection reset X-Git-Tag: v3.1-rc9~15^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0d5f9db1c7d1b8a9e2f217706e8ea233bac2754;p=pandora-kernel.git libceph: initialize ack_stamp to avoid unnecessary connection reset Commit 4cf9d544631c recorded when an outgoing ceph message was ACKed, in order to avoid unnecessary connection resets when an OSD is busy. However, ack_stamp is uninitialized, so there is a window between when the message is sent and when it is ACKed in which handle_timeout() interprets the unitialized value as an expired timeout, and resets the connection unnecessarily. Close the window by initializing ack_stamp. Signed-off-by: Jim Schutt Signed-off-by: Sage Weil --- Reading git-diff-tree failed