]> git.baikalelectronics.ru Git - kernel.git/commit
dlm: replace sanity checks with WARN_ON
authorAlexander Aring <aahringo@redhat.com>
Mon, 4 Apr 2022 20:06:31 +0000 (16:06 -0400)
committerDavid Teigland <teigland@redhat.com>
Wed, 6 Apr 2022 19:01:58 +0000 (14:01 -0500)
commitd8452382190f8e40abb2e0bbfbcfad9fac760765
tree9add44b522937bc0742ef8ebc9eaa82f187f5e5d
parent1d38439f26e35aced8e1b13a3ebd7f47b7aa4ff1
dlm: replace sanity checks with WARN_ON

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: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/plock.c