fs: dlm: move sending fin message into state change handling
authorAlexander Aring <aahringo@redhat.com>
Thu, 12 Jan 2023 22:10:36 +0000 (17:10 -0500)
committerDavid Teigland <teigland@redhat.com>
Mon, 23 Jan 2023 20:30:06 +0000 (14:30 -0600)
commita58496361802070996f9bd76e941d109c4a85ebd
tree34fd1985341e3ab575924dbc4f92bb6df0efdcab
parent15c63db8e86a72e0d5cfb9bf0cd1870e39a3e5fe
fs: dlm: move sending fin message into state change handling

This patch moves the send fin handling, which should appear in a specific
state change, into the state change handling while the per node
state_lock is held. I experienced issues with other messages because
we changed the state and a fin message was sent out in a different state.

Cc: stable@vger.kernel.org
Fixes: 489d8e559c65 ("fs: dlm: add reliable connection if reconnect")
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/midcomms.c