]> git.karo-electronics.de Git - linux-beck.git/commit
libceph: record length of bio list with bio
authorAlex Elder <elder@inktank.com>
Thu, 14 Mar 2013 19:09:06 +0000 (14:09 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:17:56 +0000 (21:17 -0700)
commitfdce58ccb5df621695b079378c619046acabc778
treeec1f5349bd40393ba124dc976fc122dd46428fc0
parentace6d3a96f00c271b3f337adcde8e8cbe39c3820
libceph: record length of bio list with bio

When assigning a bio pointer to an osd request, we don't have an
efficient way of knowing the total length bytes in the bio list.
That information is available at the point it's set up by the rbd
code, so record it with the osd data when it's set.

This and the next patch are related to maintaining the length of a
message's data independent of the message header, as described here:
    http://tracker.ceph.com/issues/4589

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c
include/linux/ceph/osd_client.h