diff options
author | Alexander Aring <aahringo@redhat.com> | 2023-05-30 00:44:31 +0300 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2023-06-14 18:17:33 +0300 |
commit | f68bb23cad1f128198074ed7b3a4c5fb03dbd9d2 (patch) | |
tree | 16a0abdae540f68c30179749407bb8aa816ab899 /fs/dlm/lowcomms.c | |
parent | 7a931477bff1c7548aa8492bccf600f5f29452b1 (diff) | |
download | linux-f68bb23cad1f128198074ed7b3a4c5fb03dbd9d2.tar.xz |
fs: dlm: fix missing pending to false
This patch sets the process_dlm_messages_pending boolean to false when
there was no message to process. It is a case which should not happen
but if we are prepared to recover from this situation by setting pending
boolean to false.
Cc: stable@vger.kernel.org
Fixes: dbb751ffab0b ("fs: dlm: parallelize lowcomms socket handling")
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/lowcomms.c')
-rw-r--r-- | fs/dlm/lowcomms.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c index 3d3802c47b8b..5aad4d4842eb 100644 --- a/fs/dlm/lowcomms.c +++ b/fs/dlm/lowcomms.c @@ -898,6 +898,7 @@ static void process_dlm_messages(struct work_struct *work) pentry = list_first_entry_or_null(&processqueue, struct processqueue_entry, list); if (WARN_ON_ONCE(!pentry)) { + process_dlm_messages_pending = false; spin_unlock(&processqueue_lock); return; } |