]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: clear messenger auth_retry flag when we authenticate
authorSage Weil <sage@inktank.com>
Mon, 25 Mar 2013 16:30:13 +0000 (09:30 -0700)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:17:11 +0000 (21:17 -0700)
commit0c744be22c883ad2217ba101b28b7fa7268b01e1
tree8e8392734f7553ecf4083703d30c27249d50c0b9
parentc8800b370af669f6e9171678970a01faf61c5c40
libceph: clear messenger auth_retry flag when we authenticate

We maintain a counter of failed auth attempts to allow us to retry once
before failing.  However, if the second attempt succeeds, the flag isn't
cleared, which makes us think auth failed again later when the connection
resets for other reasons (like a socket error).

This is one part of the sorry sequence of events in bug

http://tracker.ceph.com/issues/4282

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
net/ceph/messenger.c