fs: dlm: clear pending bit when queue was empty
authorAlexander Aring <aahringo@redhat.com>
Mon, 29 May 2023 21:44:30 +0000 (17:44 -0400)
committerDavid Teigland <teigland@redhat.com>
Wed, 14 Jun 2023 15:17:33 +0000 (10:17 -0500)
commit7a931477bff1c7548aa8492bccf600f5f29452b1
tree963787e86ad19efb3845b30c3c70c4225f48858d
parentc6b6d6dcc7f32767d57740e0552337c8de40610b
fs: dlm: clear pending bit when queue was empty

This patch clears the DLM_IFL_CB_PENDING_BIT flag which will be set when
there is callback work queued when there was no callback to dequeue. It
is a buggy case and should never happen, that's why there is a
WARN_ON(). However if the case happens we are prepared to somehow
recover from it.

Cc: stable@vger.kernel.org
Fixes: 61bed0baa4db ("fs: dlm: use a non-static queue for callbacks")
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/ast.c