• Alexander Aring's avatar
    fs: dlm: move internal flags to atomic ops · e1af8728
    Alexander Aring authored
    This patch will move the lkb_flags value to the recently introduced
    lkb_iflags value. For lkb_iflags we use atomic bit operations because
    some flags like DLM_IFL_CB_PENDING are used while non rsb lock is held
    to avoid issues with other flag manipulations which might run at the
    same time we switch to atomic bit operations. Snapshot the bit values to
    an uint32_t value is only used for debugging/logging use cases and don't
    need to be 100% correct.
    Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
    Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
    e1af8728
lock.c 156 KB