]> git.baikalelectronics.ru Git - kernel.git/commit
dlm: fix pending remove if msg allocation fails
authorAlexander Aring <aahringo@redhat.com>
Wed, 6 Apr 2022 17:34:16 +0000 (13:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jul 2022 15:14:16 +0000 (17:14 +0200)
commit97a49fd206d077ab05dfbf0343aa3a95468722ea
treeba51310695e1d75bca0c28b38386afe423845f8d
parente490c758d346969e958b05269844b2705cd7d493
dlm: fix pending remove if msg allocation fails

[ Upstream commit c8b99fe4584f1b73e845169a97e435198f4dd999 ]

This patch unsets ls_remove_len and ls_remove_name if a message
allocation of a remove messages fails. In this case we never send a
remove message out but set the per ls ls_remove_len ls_remove_name
variable for a pending remove. Unset those variable should indicate
possible waiters in wait_pending_remove() that no pending remove is
going on at this moment.

Cc: stable@vger.kernel.org
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/dlm/lock.c