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 19:01:31 +0000 (12:01 -0700)
commit5725b3e6e06bc80daaed802e4fd58e094c20a191
tree5c0ff38bae2a590c02d17c8b105ac7fd7b2a9f86
parentaed4802d2a0d2f6c7179a2c03e184860741788c0
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