diff options
author | Alex Elder <elder@inktank.com> | 2013-04-05 14:46:01 -0500 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-01 21:18:28 -0700 |
commit | c851c49591ebf000c610711e39eea7da5ff05b21 (patch) | |
tree | 917451c570fae240e1902085a75d7ff970deb981 /net/ceph | |
parent | f759ebb968dbf185fc079dd2e824b1aa3a3d71aa (diff) | |
download | linux-3.10-c851c49591ebf000c610711e39eea7da5ff05b21.tar.gz linux-3.10-c851c49591ebf000c610711e39eea7da5ff05b21.tar.bz2 linux-3.10-c851c49591ebf000c610711e39eea7da5ff05b21.zip |
libceph: record bio length
The bio is the only data item type that doesn't record its full
length. Fix that.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'net/ceph')
-rw-r--r-- | net/ceph/messenger.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c index cb5b4e6733f..731bb9efa2c 100644 --- a/net/ceph/messenger.c +++ b/net/ceph/messenger.c @@ -3032,6 +3032,7 @@ void ceph_msg_data_set_bio(struct ceph_msg *msg, struct bio *bio, data = ceph_msg_data_create(CEPH_MSG_DATA_BIO); BUG_ON(!data); data->bio = bio; + data->bio_length = length; msg->data = data; msg->data_length = length; |