• Alexander Aring's avatar
    dlm: do not use ref counts for rsb in the toss state · 6644925a
    Alexander Aring authored
    In the past we had problems when an rsb had a reference counter greater
    than one while in the toss state.  An rsb in the toss state is not
    actively used for locking, and should not have any other references
    apart from the single ref keeping it on the rsb hash.  Shift to freeing
    rsb's directly rather than using kref_put to free them, since the ref
    counting is not meant to be used in this state.  Add warnings if ref
    counting is seen while an rsb is in the toss state.
    Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
    Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
    6644925a
lock.h 3.2 KB