libceph: use sock_no_sendpage() as a fallback in ceph_tcp_sendpage()
authorIlya Dryomov <idryomov@gmail.com>
Fri, 16 Nov 2018 10:58:19 +0000 (11:58 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 26 Dec 2018 14:56:04 +0000 (15:56 +0100)
commit3239eb5215ebdef593a79316c9dbbdf8849166ec
treef76919e91cc7fcc004eac6a4c9364c110338e3c5
parent1f6b821aef78e3d79e8d598ae59fc7e23fb6c563
libceph: use sock_no_sendpage() as a fallback in ceph_tcp_sendpage()

sock_no_sendpage() makes the code cleaner.

Also, don't set MSG_EOR.  sendpage doesn't act on MSG_EOR on its own,
it just honors the setting from the preceding sendmsg call by looking
at ->eor in tcp_skb_can_collapse_to().

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