summaryrefslogtreecommitdiffstats
path: root/lib/ioremap.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-01-25 08:17:48 -0800
committerSage Weil <sage@newdream.net>2011-01-25 08:17:48 -0800
commit98bdb0aa007ff7e8e0061936d8d0e210faf2e655 (patch)
tree78c32ad3f4aee581e1f17bc477791fbc102b672c /lib/ioremap.c
parentd66bbd441c08fe00ed2add1cf70cb243ebc2b27e (diff)
downloadop-kernel-dev-98bdb0aa007ff7e8e0061936d8d0e210faf2e655.zip
op-kernel-dev-98bdb0aa007ff7e8e0061936d8d0e210faf2e655.tar.gz
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 <sage@newdream.net>
Diffstat (limited to 'lib/ioremap.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud