libceph: use a do..while loop in con_work()
authorAlex Elder <elder@inktank.com>
Tue, 19 Feb 2013 18:25:57 +0000 (12:25 -0600)
committerAlex Elder <elder@inktank.com>
Mon, 25 Feb 2013 21:37:37 +0000 (15:37 -0600)
commit49659416ba4fa8308bd29e453f54c3bcf8a0fbf1
tree45ef273049a461489baf3de188f57a544fef2be9
parentb6e7b6a11923bda6102b4e3e196693567944869c
libceph: use a do..while loop in con_work()

This just converts a manually-implemented loop into a do..while loop
in con_work().  It also moves handling of EAGAIN inside the blocks
where it's already been determined an error code was returned.

Also update a few dout() calls near the affected code for
consistency.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
net/ceph/messenger.c