• Alexander Aring's avatar
    dlm: slow down filling up processing queue · a470cb2a
    Alexander Aring authored
    If there is a burst of message the receive worker will filling up the
    processing queue but where are too slow to process dlm messages. This
    patch will slow down the receiver worker to keep the buffer on the
    socket layer to tell the sender to backoff. This is done by a threshold
    to get the next buffers from the socket after all messages were
    processed done by a flush_workqueue(). This however only occurs when we
    have a message burst when we e.g. create 1 million locks. If we put more
    and more new messages to process in the processqueue we will soon run out
    of memory.
    Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
    Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
    a470cb2a
lowcomms.c 47.9 KB