summaryrefslogtreecommitdiff
path: root/fs/gfs2/super.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2022-12-06 18:04:22 +0300
committerAndreas Gruenbacher <agruenba@redhat.com>2023-02-01 00:40:24 +0300
commit0247f4e959c01f6ce1fcc2091c571f8c0742a065 (patch)
treed424bc8daa80fcf95202f9ffb2a60beda86099de /fs/gfs2/super.c
parent3056dc46559bfe3fc4b79771dcbc2d003f9fd313 (diff)
downloadlinux-0247f4e959c01f6ce1fcc2091c571f8c0742a065.tar.xz
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);