summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/super.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 19:22:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 19:22:03 +0000
commit4fe40b02212fc6ae213fa2082322c3401433a0a3 (patch)
treee1bf3b779c1dc9c5337c4442bf720073a3a53415 /fs/gfs2/super.c
parentAdding upstream version 6.9.7. (diff)
downloadlinux-4fe40b02212fc6ae213fa2082322c3401433a0a3.tar.xz
linux-4fe40b02212fc6ae213fa2082322c3401433a0a3.zip
Adding upstream version 6.9.8.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'fs/gfs2/super.c')
-rw-r--r--fs/gfs2/super.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c
index 2d780b4701..ee61fcb7f2 100644
--- a/fs/gfs2/super.c
+++ b/fs/gfs2/super.c
@@ -67,9 +67,13 @@ void gfs2_jindex_free(struct gfs2_sbd *sdp)
sdp->sd_journals = 0;
spin_unlock(&sdp->sd_jindex_spin);
+ down_write(&sdp->sd_log_flush_lock);
sdp->sd_jdesc = NULL;
+ up_write(&sdp->sd_log_flush_lock);
+
while (!list_empty(&list)) {
jd = list_first_entry(&list, struct gfs2_jdesc, jd_list);
+ BUG_ON(jd->jd_log_bio);
gfs2_free_journal_extents(jd);
list_del(&jd->jd_list);
iput(jd->jd_inode);