]> git.baikalelectronics.ru Git - kernel.git/commit
fs: dlm: be sure to call dlm_send_queue_flush()
authorAlexander Aring <aahringo@redhat.com>
Thu, 12 Jan 2023 22:10:33 +0000 (17:10 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:50:19 +0000 (08:50 +0100)
commit771d8f27940b5e8131a05afcca98c5de3445f4ed
tree0850f2f3fd592356c02a21c96761f88393ec7dd0
parent2fc7c595722a670acec0b8745f7263c0eca75d60
fs: dlm: be sure to call dlm_send_queue_flush()

[ Upstream commit 557856c7140be71b8c765934d7db78996890b893 ]

If we release a midcomms node structure, there should be nothing left
inside the dlm midcomms send queue. However, sometimes this is not true
because I believe some DLM_FIN message was not acked... if we run
into a shutdown timeout, then we should be sure there is no pending send
dlm message inside this queue when releasing midcomms node structure.

Cc: stable@vger.kernel.org
Fixes: 9c99c76781ff ("fs: dlm: add reliable connection if reconnect")
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/midcomms.c