mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
fs: dlm: be sure to call dlm_send_queue_flush()
[ Upstream commit7354fa4ef6] 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:489d8e559c("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
29682b8a3d
commit
3c1bc8ded4
@@ -1367,6 +1367,7 @@ static void midcomms_node_release(struct rcu_head *rcu)
|
||||
struct midcomms_node *node = container_of(rcu, struct midcomms_node, rcu);
|
||||
|
||||
WARN_ON_ONCE(atomic_read(&node->send_queue_cnt));
|
||||
dlm_send_queue_flush(node);
|
||||
kfree(node);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user