dlm: fix pending remove if msg allocation fails
authorAlexander Aring <aahringo@redhat.com>
Wed, 6 Apr 2022 17:34:16 +0000 (13:34 -0400)
committerDavid Teigland <teigland@redhat.com>
Wed, 6 Apr 2022 19:03:09 +0000 (14:03 -0500)
commitba58995909b5098ca4003af65b0ccd5a8d13dd25
treeb79ab6eebcb578abeec0e5c86d509ecc44c80c25
parentf6f7418357457ed58cbb020fc97e74d4e0e7b47f
dlm: fix pending remove if msg allocation fails

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>
fs/dlm/lock.c