summaryrefslogtreecommitdiffstats
path: root/include/sound/tlv.h
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2013-03-11 23:34:22 -0500
committerSage Weil <sage@inktank.com>2013-05-01 21:17:24 -0700
commit25aff7c559c8b54a810bc094d59fe037cfed6b18 (patch)
tree93db1b7a4941ab629abc36e31f8af51aa134aa3e /include/sound/tlv.h
parent28a89ddece39890c255a0c41baf622731a08c288 (diff)
libceph: record residual bytes for all message data types
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. In addition, change the way "last_piece" is defined so it is based on the residual number of bytes in the original request. This is necessary (at least for bio messages) because it is possible for a read request to succeed without consuming all of the space available in the data buffer. This resolves: http://tracker.ceph.com/issues/4427 Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'include/sound/tlv.h')
0 files changed, 0 insertions, 0 deletions