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)
committerDavid Teigland <teigland@redhat.com>
Mon, 23 Jan 2023 18:57:18 +0000 (12:57 -0600)
commit7354fa4ef697191effedc2ae9a8293427708bbf5
tree711ab6fe4991154fff8da4798d442f76115e8a2b
parent724b6bab0d75f1dc01fdfbf7fe8d4217a5cb90ba
fs: dlm: be sure to call dlm_send_queue_flush()

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: 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