libceph: use cursor for inbound data pages
authorAlex Elder <elder@inktank.com>
Tue, 12 Mar 2013 04:34:23 +0000 (23:34 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:17:27 +0000 (21:17 -0700)
commit878efabd3236abaedd0a4539bbb248ac69fed115
treecbd6e9f6af2f756a26631e36e868fc4c5189992b
parent6518be47f910f62a98cb6044dbb457af55241f95
libceph: use cursor for inbound data pages

The cursor code for a page array selects the right page, page
offset, and length to use for a ceph_tcp_recvpage() call, so
we can use it to replace a block in read_partial_message_pages().

This partially resolves:
    http://tracker.ceph.com/issues/4428

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