• Alexander Aring's avatar
    fs: dlm: revert check required context while close · c6b6d6dc
    Alexander Aring authored
    This patch reverts commit 2c3fa6ae ("dlm: check required context
    while close"). The function dlm_midcomms_close(), which will call later
    dlm_lowcomms_close(), is called when the cluster manager tells the node
    got fenced which means on midcomms/lowcomms layer to disconnect the node
    from the cluster communication. The node can rejoin the cluster later.
    This patch was ensuring no new message were able to be triggered when we
    are in the close() function context. This was done by checking if the
    lockspace has been stopped. However there is a missing check that we
    only need to check specific lockspaces where the fenced node is member
    of. This is currently complicated because there is no way to easily
    check if a node is part of a specific lockspace without stopping the
    recovery. For now we just revert this commit as it is just a check to
    finding possible leaks of stopping lockspaces before close() is called.
    
    Cc: stable@vger.kernel.org
    Fixes: 2c3fa6ae ("dlm: check required context while close")
    Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
    Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
    c6b6d6dc
lockspace.c 21.2 KB