ceph: fix connection fault STANDBY check
authorSage Weil <sage@newdream.net>
Thu, 25 Feb 2010 20:40:45 +0000 (12:40 -0800)
committerSage Weil <sage@newdream.net>
Thu, 25 Feb 2010 20:40:45 +0000 (12:40 -0800)
commite80a52d14f868059e8ec790c9fae88cdb8a1df98
tree8353f33245509d7c3bd7fb25f5c254df6db8db9b
parent161fd65ac934608345aed35226fc889ea3b0b500
ceph: fix connection fault STANDBY check

Move any out_sent messages to out_queue _before_ checking if
out_queue is empty and going to STANDBY, or else we may drop
something that was never acked.

And clean up the code a bit (less goto).

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/messenger.c