Bug #4427
libceph: record residual bytes for all message data types
0%
Description
As I got closer to fully implementing the abstract data
item for reads I realized it was necessary to know the
full length of request data, which was not available
in the messenger for bio data.
All of the data types can use this, not just the page array. Until
now, only the bio type doesn't have it available, and only the
initiator of the request (the rbd client) is able to supply the
length of the full request without re-scanning the bio list. Change
the cursor init routines so the length is supplied based on the
message header "data_len" field, and use that length to intiialize
the "resid" field of the cursor.
Signed-off-by: Alex Elder <elder@inktank.com>
History
#1 Updated by Alex Elder about 11 years ago
This is related to http://tracker.ceph.com/issues/3761.
#2 Updated by Alex Elder about 11 years ago
- Status changed from In Progress to Fix Under Review
This patch has been posted for review:
[PATCH] libceph: record residual bytes for all message data types
#3 Updated by Alex Elder almost 11 years ago
- Status changed from Fix Under Review to Resolved
This has been committed to the ceph-client "testing" branch:
95e3dca libceph: record residual bytes for all message data types