libceph: new sparse_read op, support sparse reads on msgr2 crc codepath
[linux-2.6-block.git] / net / ceph / messenger.c
index 5eb4898cccd4cc01e44b40952d2ddc888d224f53..2eb10d7518e8f7a69154cadb58e1281982803541 100644 (file)
@@ -1013,6 +1013,7 @@ void ceph_msg_data_cursor_init(struct ceph_msg_data_cursor *cursor,
 
        cursor->total_resid = length;
        cursor->data = msg->data;
+       cursor->sr_resid = 0;
 
        __ceph_msg_data_cursor_init(cursor);
 }