acrn-kernel/fs/dlm
Alexander Aring a926daa8b1 fs: dlm: fix race setting stop tx flag
[ Upstream commit 164272113b ]

This patch sets the stop tx flag before we commit the dlm message.
This flag will report about unexpected transmissions after we
send the DLM_FIN message out, which should be the last message sent.
When we commit the dlm fin message, it could be that we already
got an ack back and the CLOSED state change already happened.
We should not set this flag when we are in CLOSED state. To avoid this
race we simply set the tx flag before the state change can be in
progress by moving it before dlm_midcomms_commit_mhandle().

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>
2023-03-17 08:50:19 +01:00
..
Kconfig
Makefile
ast.c
ast.h
config.c
config.h
debug_fs.c
dir.c
dir.h
dlm_internal.h
lock.c fd: dlm: trace send/recv of dlm message and rcom 2023-03-17 08:50:18 +01:00
lock.h
lockspace.c fs: dlm: start midcomms before scand 2023-03-17 08:50:18 +01:00
lockspace.h
lowcomms.c fs: dlm: add midcomms init/start functions 2023-03-17 08:50:18 +01:00
lowcomms.h fs: dlm: add midcomms init/start functions 2023-03-17 08:50:18 +01:00
lvb_table.h
main.c fs: dlm: add midcomms init/start functions 2023-03-17 08:50:18 +01:00
member.c
member.h
memory.c
memory.h
midcomms.c fs: dlm: fix race setting stop tx flag 2023-03-17 08:50:19 +01:00
midcomms.h fd: dlm: trace send/recv of dlm message and rcom 2023-03-17 08:50:18 +01:00
netlink.c
plock.c
rcom.c fd: dlm: trace send/recv of dlm message and rcom 2023-03-17 08:50:18 +01:00
rcom.h
recover.c
recover.h
recoverd.c
recoverd.h
requestqueue.c
requestqueue.h
user.c
user.h
util.c
util.h