diff options
author | Alex Elder <elder@inktank.com> | 2012-05-29 11:04:58 -0500 |
---|---|---|
committer | Alex Elder <elder@dreamhost.com> | 2012-06-01 08:37:56 -0500 |
commit | a5988c490ef66cb04ea2f610681949b25c773b3c (patch) | |
tree | a2bf615fb7df0bf61ea23720a2ffe6337cba254a /drivers/block/rbd.c | |
parent | e10006f807ffc4d5b1d861305d18d9e8145891ca (diff) |
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 <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'drivers/block/rbd.c')
0 files changed, 0 insertions, 0 deletions