From: Alex Elder Date: Wed, 23 May 2012 19:35:23 +0000 (-0500) Subject: libceph: clear NEGOTIATING when done X-Git-Tag: v3.6-rc1~36^2~88 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ec50d1868a9e0493046400bb1fdd054c7f64ebd;p=pandora-kernel.git libceph: clear NEGOTIATING when done A connection state's NEGOTIATING bit gets set while in CONNECTING state after we have successfully exchanged a ceph banner and IP addresses with the connection's peer (the server). But that bit is not cleared again--at least not until another connection attempt is initiated. Instead, clear it as soon as the connection is fully established. Also, clear it when a socket connection gets prematurely closed in the midst of establishing a ceph connection (in case we had reached the point where it was set). Signed-off-by: Alex Elder Reviewed-by: Sage Weil --- Reading git-diff-tree failed