From: Alex Elder Date: Tue, 29 May 2012 16:04:58 +0000 (-0500) Subject: libceph: set CLOSED state bit in con_init X-Git-Tag: v3.6-rc1~36^2~123 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5988c490ef66cb04ea2f610681949b25c773b3c;p=pandora-kernel.git libceph: set CLOSED state bit in con_init Once a connection is fully initialized, it is really in a CLOSED state, so make that explicit by setting the bit in its state field. It is possible for a connection in NEGOTIATING state to get a failure, leading to ceph_fault() and ultimately ceph_con_close(). Clear that bits if it is set in that case, to reflect that the connection truly is closed and is no longer participating in a connect sequence. Issue a warning if ceph_con_open() is called on a connection that is not in CLOSED state. Signed-off-by: Alex Elder Reviewed-by: Sage Weil --- Reading git-diff-tree failed