Staging
v0.5.1
https://github.com/torvalds/linux
Revision 0e04dc26cc594d31ee6b1382b452b6bc83b57937 authored by Ilya Dryomov on 20 January 2016, 16:50:31 UTC, committed by Ilya Dryomov on 25 March 2016, 17:51:38 UTC
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>
1 parent 82dcaba
History
Tip revision: 0e04dc26cc594d31ee6b1382b452b6bc83b57937 authored by Ilya Dryomov on 20 January 2016, 16:50:31 UTC
libceph: pick a different monitor when reconnecting
Tip revision: 0e04dc2
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 5.5 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 95.4 KB
Kbuild -rw-r--r-- 2.6 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 340.3 KB
Makefile -rw-r--r-- 54.1 KB
README -rw-r--r-- 18.1 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top