WSL2-Linux-Kernel/fs/dlm
Marcelo Ricardo Leitner 3a8db79889 dlm: free workqueues after the connections
After backporting commit ee44b4bc05 ("dlm: use sctp 1-to-1 API")
series to a kernel with an older workqueue which didn't use RCU yet, it
was noticed that we are freeing the workqueues in dlm_lowcomms_stop()
too early as free_conn() will try to access that memory for canceling
the queued works if any.

This issue was introduced by commit 0d737a8cfd as before it such
attempt to cancel the queued works wasn't performed, so the issue was
not present.

This patch fixes it by simply inverting the free order.

Cc: stable@vger.kernel.org
Fixes: 0d737a8cfd ("dlm: fix race while closing connections")
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David Teigland <teigland@redhat.com>
2016-10-10 09:54:00 -05:00
..
Kconfig
Makefile
ast.c
ast.h
config.c dlm: add log_info config option 2016-06-21 09:04:24 -05:00
config.h dlm: add log_info config option 2016-06-21 09:04:24 -05:00
debug_fs.c dlm: fix malfunction of dlm_tool caused by debugfs changes 2016-08-26 13:22:14 -05:00
dir.c
dir.h
dlm_internal.h dlm: add log_info config option 2016-06-21 09:04:24 -05:00
lock.c
lock.h
lockspace.c
lockspace.h
lowcomms.c dlm: free workqueues after the connections 2016-10-10 09:54:00 -05:00
lowcomms.h
lvb_table.h
main.c
member.c
member.h
memory.c
memory.h
midcomms.c
midcomms.h
netlink.c
plock.c dlm for 4.4 2015-11-05 11:15:25 -08:00
rcom.c
rcom.h
recover.c
recover.h
recoverd.c
recoverd.h
requestqueue.c
requestqueue.h
user.c [regression] fix braino in fs/dlm/user.c 2016-01-21 17:45:15 -05:00
user.h
util.c
util.h