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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Jun 2013 18:58:46 +0000 (11:58 -0700)
commitaf53bc4db606a4ce179a4cef0f1d2a64276b08bc
tree6acee28ce06bf17ac07e0f0b9fa90cfade952707
parent5c7a854c966cc6370ab2d4595f7cee5dd02d87c1
libceph: clear messenger auth_retry flag when we authenticate

commit 20e55c4cc758e4dccdfd92ae8e9588dd624b2cd7 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ceph/messenger.c