• Alexander Aring's avatar
    fs: dlm: relax sending to allow receiving · 194a3fb4
    Alexander Aring authored
    This patch drops additionally the sock_mutex when there is a sending
    message burst. Since we have acknowledge handling we free sending
    buffers only when we receive an ack back, but if we are stuck in
    send_to_sock() looping because dlm sends a lot of messages and we never
    leave the loop the sending buffer fill up very quickly. We can't receive
    during this iteration because the sock_mutex is held. This patch will
    unlock the sock_mutex so it should be possible to receive messages when
    a burst of sending messages happens. This will allow to free up memory
    because acks which are already received can be processed.
    Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
    Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
    194a3fb4
lowcomms.c 47.5 KB