diff options
author | Alex Elder <elder@inktank.com> | 2013-03-14 14:09:06 -0500 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-01 21:17:56 -0700 |
commit | fdce58ccb5df621695b079378c619046acabc778 (patch) | |
tree | ec1f5349bd40393ba124dc976fc122dd46428fc0 /include/linux/ceph | |
parent | ace6d3a96f00c271b3f337adcde8e8cbe39c3820 (diff) | |
download | op-kernel-dev-fdce58ccb5df621695b079378c619046acabc778.zip op-kernel-dev-fdce58ccb5df621695b079378c619046acabc778.tar.gz |
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>
Diffstat (limited to 'include/linux/ceph')
-rw-r--r-- | include/linux/ceph/osd_client.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h index 3b5ba31..fdda93e 100644 --- a/include/linux/ceph/osd_client.h +++ b/include/linux/ceph/osd_client.h @@ -71,7 +71,10 @@ struct ceph_osd_data { }; struct ceph_pagelist *pagelist; #ifdef CONFIG_BLOCK - struct bio *bio; + struct { + struct bio *bio; /* list of bios */ + size_t bio_length; /* total in list */ + }; #endif /* CONFIG_BLOCK */ }; }; |