From: Sage Weil Date: Tue, 25 Jan 2011 16:17:48 +0000 (-0800) Subject: libceph: fix socket read error handling X-Git-Tag: v2.6.38-rc6~10^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98bdb0aa007ff7e8e0061936d8d0e210faf2e655;p=pandora-kernel.git libceph: fix socket read error handling If we get EAGAIN when trying to read from the socket, it is not an error. Return 0 from the helper in this case to simplify the error handling cases in the caller (indirectly, try_read). Fix try_read to pass any error to it's caller (con_work) instead of almost always returning 0. This let's us respond to things like socket disconnects. Signed-off-by: Sage Weil --- Reading git-diff-tree failed