• Alex Elder's avatar
    libceph: move init of bio_iter · 572c588e
    Alex Elder authored
    If a message has a non-null bio pointer, its bio_iter field is
    initialized in write_partial_msg_pages() if this has not been done
    already.  This is really a one-time setup operation for sending a
    message's (bio) data, so move that initialization code into
    prepare_write_message_data() which serves that purpose.
    Signed-off-by: default avatarAlex Elder <elder@inktank.com>
    Reviewed-by: default avatarSage Weil <sage@inktank.com>
    572c588e
messenger.c 66.6 KB