libceph: fix socket write error handling
authorSage Weil <sage@newdream.net>
Tue, 25 Jan 2011 16:19:34 +0000 (08:19 -0800)
committerSage Weil <sage@newdream.net>
Tue, 25 Jan 2011 16:19:34 +0000 (08:19 -0800)
commit42961d2333a1855c649fa3790e258ab4f0fa66a4
tree7858f28e3a3c5ff1f0dc6f6165251c68b9709b4d
parent98bdb0aa007ff7e8e0061936d8d0e210faf2e655
libceph: fix socket write error handling

Pass errors from writing to the socket up the stack.  If we get -EAGAIN,
return 0 from the helper to simplify the callers' checks.

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