• Alexander Aring's avatar
    dlm: avoid blocking receive at the end of recovery · c288745f
    Alexander Aring authored
    The end of the recovery process transitioned to normal message
    processing by temporarily blocking the receiving context,
    processing saved messages, then unblocking the receiving
    context.  To avoid blocking the receiving context, the old
    wait_queue and mutex are replaced by a new rwlock and the new
    RECV_MSG_BLOCKED flag.  Received messages are added to the
    list of saved messages, protected by the rwlock, until the
    flag is cleared, which happens when all saved messages have
    been processed.
    Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
    Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
    c288745f
lock.c 158 KB