gfs2: Register fs after creating workqueues
authorBob Peterson <rpeterso@redhat.com>
Tue, 30 Aug 2022 18:52:13 +0000 (13:52 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 20 Sep 2022 15:53:54 +0000 (17:53 +0200)
commit74b1b10e29b1f25e1a081fa82733baea65429d53
tree6a3a06b1997cc37af096cdceaf8d3489a08aa4b7
parent670f8ce56dd0632dc29a0322e188cc73ce3c6b92
gfs2: Register fs after creating workqueues

Before this patch, the gfs2 file system was registered prior to creating
the three workqueues. In some cases this allowed dlm to send recovery
work to a workqueue that did not yet exist because gfs2 was still
initializing.

This patch changes the order of gfs2's initialization routine so it only
registers the file system after the work queues are created.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/main.c