• Alexander Aring's avatar
    dlm: replace sanity checks with WARN_ON · a559790c
    Alexander Aring authored
    There are several sanity checks and recover handling if they occur in
    the dlm plock handling. From my understanding those operation can't run
    in parallel with any list manipulation which involved setting the list
    holder of plock_op, if so we have a bug which this sanity check will
    warn about. Previously if such sanity check occurred the dlm plock
    handling was trying to recover from it by deleting the plock_op from a
    list which the holder was set to. However there is a bug in the dlm
    plock handling if this case ever happens. To make such bugs are more
    visible for further investigations we add a WARN_ON() on those sanity
    checks and remove the recovering handling because other possible side
    effects.
    Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
    Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
    a559790c
plock.c 10.8 KB