Skip to content

gfs2: Rework freeze / thaw logic

Andreas Gruenbacher cluster-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8gfs2: Rename remaining "transaction" glock referencesfs/gfs2/glock.c fs/gfs2/ops_fstype.c fs/gfs2/recovery.c +2 more+9 -90 replies
2/8gfs2: Rename the {freeze, thaw}_super callbacksfs/gfs2/super.c fs/gfs2/util.c+7 -70 replies
3/8gfs2: Rename gfs2_freeze_lock{ => _shared }fs/gfs2/ops_fstype.c fs/gfs2/recovery.c fs/gfs2/super.c +2 more+12 -110 replies
4/8gfs2: Reconfiguring frozen filesystem already rejectedfs/gfs2/ops_fstype.c+0 -70 replies
5/8gfs2: Rename SDF_{FS_FROZEN => FREEZE_INITIATOR}fs/gfs2/incore.h fs/gfs2/super.c fs/gfs2/sys.c +1 more+7 -70 replies
6/8gfs2: Rework freeze / thaw logicfs/gfs2/glops.c fs/gfs2/log.c fs/gfs2/ops_fstype.c +4 more+185 -1102 replies
6/8gfs2: Rework freeze / thaw logic+0 -00 replies
6/8gfs2: Rework freeze / thaw logic+0 -00 replies
7/8gfs2: Replace sd_freeze_state with SDF_FROZEN flagfs/gfs2/incore.h fs/gfs2/log.c fs/gfs2/ops_fstype.c +4 more+18 -320 replies
8/8gfs2: gfs2_freeze_lock_shared cleanupfs/gfs2/ops_fstype.c fs/gfs2/super.c fs/gfs2/util.c +1 more+7 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Cluster-devel] [PATCH 0/8] gfs2: Rework freeze / thaw logic

Currently, filesystem freeze is implemented inside freeze_go_sync(), a glock state transition callback. It turns out that in some scenarios, freezing the filesystem in such a callback can deadlock. To prevent that from happening, rework the freeze / thaw logic and move it out of the glock state engine.

Andreas Gruenbacher (8):
gfs2: Rename remaining "transaction" glock references
gfs2: Rename the {freeze,thaw}_super callbacks
gfs2: Rename gfs2_freeze_lock{ => _shared }
gfs2: Reconfiguring frozen filesystem already rejected
gfs2: Rename SDF_{FS_FROZEN => FREEZE_INITIATOR}
gfs2: Rework freeze / thaw logic
gfs2: Replace sd_freeze_state with SDF_FROZEN flag
gfs2: gfs2_freeze_lock_shared cleanup

 fs/gfs2/glock.c      |   4 +-
 fs/gfs2/glops.c      |  52 +++++-------
 fs/gfs2/incore.h     |  10 +--
 fs/gfs2/log.c        |  11 +--
 fs/gfs2/ops_fstype.c |  15 +---
 fs/gfs2/recovery.c   |  28 +++----
 fs/gfs2/super.c      | 186 +++++++++++++++++++++++++++++++++----------
 fs/gfs2/super.h      |   1 +
 fs/gfs2/sys.c        |   4 +-
 fs/gfs2/trans.c      |   3 +-
 fs/gfs2/util.c       |  45 ++++-------
 fs/gfs2/util.h       |   3 +-
 12 files changed, 206 insertions(+), 156 deletions(-)
Signature · 1 line
2.40.0