• David Teigland's avatar
    GFS2: skip dlm_unlock calls in unmount · fb6791d1
    David Teigland authored
    When unmounting, gfs2 does a full dlm_unlock operation on every
    cached lock.  This can create a very large amount of work and can
    take a long time to complete.  However, the vast majority of these
    dlm unlock operations are unnecessary because after all the unlocks
    are done, gfs2 leaves the dlm lockspace, which automatically clears
    the locks of the leaving node, without unlocking each one individually.
    So, gfs2 can skip explicit dlm unlocks, and use dlm_release_lockspace to
    remove the locks implicitly.  The one exception is when the lock's lvb is
    being used.  In this case, dlm_unlock is called because it may update the
    lvb of the resource.
    Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
    Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
incore.h 21 KB