summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/super.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2022-12-06 16:04:22 +0100
committerAndreas Gruenbacher <agruenba@redhat.com>2023-01-31 22:40:24 +0100
commit0247f4e959c01f6ce1fcc2091c571f8c0742a065 (patch)
treed424bc8daa80fcf95202f9ffb2a60beda86099de /fs/gfs2/super.c
parentgfs2: Get rid of GLF_PENDING_DELETE flag (diff)
downloadlinux-0247f4e959c01f6ce1fcc2091c571f8c0742a065.tar.xz
linux-0247f4e959c01f6ce1fcc2091c571f8c0742a065.zip
gfs2: Move delete workqueue into super block
Move the global delete workqueue into struct gfs2_sbd so that we can flush / drain it without interfering with other filesystems. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/super.c')
-rw-r--r--fs/gfs2/super.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c
index a857b99252ae..0b5cda464787 100644
--- a/fs/gfs2/super.c
+++ b/fs/gfs2/super.c
@@ -630,6 +630,8 @@ restart:
/* Unmount the locking protocol */
gfs2_lm_unmount(sdp);
+ destroy_workqueue(sdp->sd_delete_wq);
+
/* At this point, we're through participating in the lockspace */
gfs2_sys_fs_del(sdp);
free_sbd(sdp);