]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: don't overwrite specific con error msgs
authorIlya Dryomov <idryomov@gmail.com>
Mon, 23 Mar 2015 11:52:40 +0000 (14:52 +0300)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 20 Apr 2015 15:55:37 +0000 (18:55 +0300)
commit03a02a290a4ebdd93e65523391d8f5ebb6b47c1a
tree3ec2a92411b449db348df22d76b1f8f20c05fa4d
parent33f7108e2dd1635fa22449e9729029aec043ead6
libceph: don't overwrite specific con error msgs

- specific con->error_msg messages (e.g. "protocol version mismatch")
  end up getting overwritten by a catch-all "socket error on read
  / write", introduced in commit 5c9828bf08eb ("libceph: report socket
  read/write error message")
- "bad message sequence # for incoming message" loses to "bad crc" due
  to the fact that -EBADMSG is used for both

Fix it, and tidy up con->error_msg assignments and pr_errs while at it.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/messenger.c