]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: define and use ceph_tcp_recvpage()
authorAlex Elder <elder@inktank.com>
Sat, 9 Mar 2013 02:58:59 +0000 (20:58 -0600)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:16:51 +0000 (21:16 -0700)
commit0ec9931e2c429e9a1a86597c2afa87b40369de4a
tree2c32016324a858846cf4f1b7d6760195096f96e5
parent3e4386363dc7bc14ce738fbda875c51b15b7b12f
libceph: define and use ceph_tcp_recvpage()

Define a new function ceph_tcp_recvpage() that behaves in a way
comparable to ceph_tcp_sendpage().

Rearrange the code in both read_partial_message_pages() and
read_partial_message_bio() so they have matching structure,
(similar to what's in write_partial_msg_pages()), and use
this new function.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
net/ceph/messenger.c