• Alexander Aring's avatar
    fs: dlm: drop rxbuf manipulation in dlm_recover_master_copy · b9d2f6ad
    Alexander Aring authored
    Currently dlm_recover_master_copy() manipulates the receive buffer of an
    rcom lock message and modifies it on the fly so a later memcpy() to a
    new rcom message with the same message has those new values. This patch
    avoids manipulating the received rcom message by store the values for
    the new rcom message in paremter assigned with call by reference. Later
    when dlm_send_rcom_lock() constructs a new message and memcpy() the
    receive buffer those values will be set on the new constructed message.
    Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
    Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
    b9d2f6ad
lock.c 156 KB