Skip to content

Commit 4dc722f

Browse files
committed
gfs2: Rename SDF_{FS_FROZEN => FREEZE_INITIATOR}
jira LE-1907 Rebuild_History Non-Buildable kernel-4.18.0-477.27.1.el8_8 commit-author Andreas Gruenbacher <[email protected]> commit cad1e15 Empty-Commit: Cherry-Pick Conflicts during history rebuild. Will be included in final tarball splat. Ref for failed cherry-pick at: ciq/ciq_backports/kernel-4.18.0-477.27.1.el8_8/cad1e158.failed Rename the SDF_FS_FROZEN flag to SDF_FREEZE_INITIATOR to indicate more clearly that the node that has this flag set is the initiator of the freeze. Signed-off-by: Andreas Gruenbacher <[email protected] (cherry picked from commit cad1e15) Signed-off-by: Jonathan Maple <[email protected]> # Conflicts: # fs/gfs2/super.c
1 parent 1708edc commit 4dc722f

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
gfs2: Rename SDF_{FS_FROZEN => FREEZE_INITIATOR}
2+
3+
jira LE-1907
4+
Rebuild_History Non-Buildable kernel-4.18.0-477.27.1.el8_8
5+
commit-author Andreas Gruenbacher <[email protected]>
6+
commit cad1e15804a83afd9a5c1d95a428d60d1f9c0340
7+
Empty-Commit: Cherry-Pick Conflicts during history rebuild.
8+
Will be included in final tarball splat. Ref for failed cherry-pick at:
9+
ciq/ciq_backports/kernel-4.18.0-477.27.1.el8_8/cad1e158.failed
10+
11+
Rename the SDF_FS_FROZEN flag to SDF_FREEZE_INITIATOR to indicate more
12+
clearly that the node that has this flag set is the initiator of the
13+
freeze.
14+
15+
Signed-off-by: Andreas Gruenbacher <[email protected]
16+
(cherry picked from commit cad1e15804a83afd9a5c1d95a428d60d1f9c0340)
17+
Signed-off-by: Jonathan Maple <[email protected]>
18+
19+
# Conflicts:
20+
# fs/gfs2/super.c
21+
diff --cc fs/gfs2/super.c
22+
index f0078c4bdb56,9a428e09d38c..000000000000
23+
--- a/fs/gfs2/super.c
24+
+++ b/fs/gfs2/super.c
25+
@@@ -701,8 -691,8 +701,13 @@@ void gfs2_freeze_func(struct work_struc
26+
gfs2_freeze_unlock(&freeze_gh);
27+
}
28+
deactivate_super(sb);
29+
++<<<<<<< HEAD
30+
+ clear_bit(SDF_FS_FROZEN, &sdp->sd_flags);
31+
+ wake_up_bit(&sdp->sd_flags, SDF_FS_FROZEN);
32+
++=======
33+
+ clear_bit_unlock(SDF_FREEZE_INITIATOR, &sdp->sd_flags);
34+
+ wake_up_bit(&sdp->sd_flags, SDF_FREEZE_INITIATOR);
35+
++>>>>>>> cad1e15804a8 (gfs2: Rename SDF_{FS_FROZEN => FREEZE_INITIATOR})
36+
return;
37+
}
38+
39+
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
40+
index a5f7b8007a85..1b411ddf2442 100644
41+
--- a/fs/gfs2/incore.h
42+
+++ b/fs/gfs2/incore.h
43+
@@ -605,7 +605,7 @@ enum {
44+
SDF_RORECOVERY = 7, /* read only recovery */
45+
SDF_SKIP_DLM_UNLOCK = 8,
46+
SDF_FORCE_AIL_FLUSH = 9,
47+
- SDF_FS_FROZEN = 10,
48+
+ SDF_FREEZE_INITIATOR = 10,
49+
SDF_WITHDRAWING = 11, /* Will withdraw eventually */
50+
SDF_WITHDRAW_IN_PROG = 12, /* Withdraw is in progress */
51+
SDF_REMOTE_WITHDRAW = 13, /* Performing remote recovery */
52+
* Unmerged path fs/gfs2/super.c
53+
diff --git a/fs/gfs2/sys.c b/fs/gfs2/sys.c
54+
index 72a071f12c50..48ce2454b075 100644
55+
--- a/fs/gfs2/sys.c
56+
+++ b/fs/gfs2/sys.c
57+
@@ -114,7 +114,7 @@ static ssize_t status_show(struct gfs2_sbd *sdp, char *buf)
58+
test_bit(SDF_RORECOVERY, &f),
59+
test_bit(SDF_SKIP_DLM_UNLOCK, &f),
60+
test_bit(SDF_FORCE_AIL_FLUSH, &f),
61+
- test_bit(SDF_FS_FROZEN, &f),
62+
+ test_bit(SDF_FREEZE_INITIATOR, &f),
63+
test_bit(SDF_WITHDRAWING, &f),
64+
test_bit(SDF_WITHDRAW_IN_PROG, &f),
65+
test_bit(SDF_REMOTE_WITHDRAW, &f),
66+
diff --git a/fs/gfs2/util.c b/fs/gfs2/util.c
67+
index 8db57f0f2c81..994167abed7f 100644
68+
--- a/fs/gfs2/util.c
69+
+++ b/fs/gfs2/util.c
70+
@@ -188,7 +188,7 @@ static void signal_our_withdraw(struct gfs2_sbd *sdp)
71+
}
72+
sdp->sd_jinode_gh.gh_flags |= GL_NOCACHE;
73+
gfs2_glock_dq(&sdp->sd_jinode_gh);
74+
- if (test_bit(SDF_FS_FROZEN, &sdp->sd_flags)) {
75+
+ if (test_bit(SDF_FREEZE_INITIATOR, &sdp->sd_flags)) {
76+
/* Make sure gfs2_thaw_super works if partially-frozen */
77+
flush_work(&sdp->sd_freeze_work);
78+
atomic_set(&sdp->sd_freeze_state, SFS_FROZEN);

0 commit comments

Comments
 (0)