• Alexander Aring's avatar
    fs: dlm: flush swork on shutdown · eec054b5
    Alexander Aring authored
    This patch fixes the flushing of send work before shutdown. The function
    cancel_work_sync() is not the right workqueue functionality to use here
    as it would cancel the work if the work queues itself. In cases of
    EAGAIN in send() for dlm message we need to be sure that everything is
    send out before. The function flush_work() will ensure that every send
    work is be done inclusive in EAGAIN cases.
    Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
    Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
    eec054b5
lowcomms.c 42.5 KB