]> Pileus Git - ~andy/linux/blobdiff - net/ceph/osd_client.c
libceph: record message data length
[~andy/linux] / net / ceph / osd_client.c
index e0887923e5ab7699ba2685f453e045ec156bef1c..0b4951e27532d1f8934daf5d6e683ba99ef6305b 100644 (file)
@@ -1848,7 +1848,7 @@ static void ceph_osdc_msg_data_set(struct ceph_msg *msg,
                ceph_msg_data_set_pagelist(msg, osd_data->pagelist);
 #ifdef CONFIG_BLOCK
        } else if (osd_data->type == CEPH_OSD_DATA_TYPE_BIO) {
-               ceph_msg_data_set_bio(msg, osd_data->bio);
+               ceph_msg_data_set_bio(msg, osd_data->bio, osd_data->bio_length);
 #endif
        } else {
                BUG_ON(osd_data->type != CEPH_OSD_DATA_TYPE_NONE);