diff options
author | Alex Elder <elder@inktank.com> | 2012-05-24 16:55:03 (GMT) |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-07-06 04:14:30 (GMT) |
commit | 7593af920baac37752190a0db703d2732bed4a3b (patch) | |
tree | f660bc222db9b74305b8a2b8cc25d508bd0596a5 /net/ceph/crypto.h | |
parent | ab166d5aa3bc036fba7efaca6e4e43a7e9510acf (diff) | |
download | linux-7593af920baac37752190a0db703d2732bed4a3b.tar.xz |
libceph: distinguish two phases of connect sequence
Currently a ceph connection enters a "CONNECTING" state when it
begins the process of (re-)connecting with its peer. Once the two
ends have successfully exchanged their banner and addresses, an
additional NEGOTIATING bit is set in the ceph connection's state to
indicate the connection information exhange has begun. The
CONNECTING bit/state continues to be set during this phase.
Rather than have the CONNECTING state continue while the NEGOTIATING
bit is set, interpret these two phases as distinct states. In other
words, when NEGOTIATING is set, clear CONNECTING. That way only
one of them will be active at a time.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'net/ceph/crypto.h')
0 files changed, 0 insertions, 0 deletions