diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2016-01-20 17:50:31 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-03-25 18:51:38 +0100 |
commit | 0e04dc26cc594d31ee6b1382b452b6bc83b57937 (patch) | |
tree | bc0ee4c6236224b44f9e388672e2e0a1cbfe8253 /crypto/pcbc.c | |
parent | libceph: revamp subs code, switch to SUBSCRIBE2 protocol (diff) | |
download | linux-0e04dc26cc594d31ee6b1382b452b6bc83b57937.tar.xz linux-0e04dc26cc594d31ee6b1382b452b6bc83b57937.zip |
libceph: pick a different monitor when reconnecting
Don't try to reconnect to the same monitor when we fail to establish
a session within a timeout or it's lost.
For that, pick_new_mon() needs to see the old value of cur_mon, so
don't clear it in __close_session() - all calls to __close_session()
but one are followed by __open_session() anyway. __open_session() is
only called when a new session needs to be established, so the "already
open?" branch, which is now in the way, is simply dropped.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'crypto/pcbc.c')
0 files changed, 0 insertions, 0 deletions