libceph: report socket read/write error message
authorSage Weil <sage@inktank.com>
Mon, 30 Jul 2012 23:24:21 +0000 (16:24 -0700)
committerSage Weil <sage@inktank.com>
Tue, 31 Jul 2012 01:15:29 +0000 (18:15 -0700)
commit3a140a0d5c4b9e35373b016e41dfc85f1e526bdb
treee145ddbb09f0493fa60c98406f6b84f36b94fb95
parent546f04ef716dd49521774653d8b032a7d64c05d9
libceph: report socket read/write error message

We need to set error_msg to something useful before calling ceph_fault();
do so here for try_{read,write}().  This is more informative than

libceph: osd0 192.168.106.220:6801 (null)

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
net/ceph/messenger.c