Skip to content

fix emergency unfreezing

Mateusz Guzik linux-fsdevel lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vfs: factor sb iteration out of do_emergency_remountfs/super.c+36 -250 replies
2/2buffer.c: call thaw_super during emergency thawfs/buffer.c fs/super.c include/linux/fs.h+44 -260 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] fix emergency unfreezing

Filesystems frozen with fsfreeze --freeze are not getting thawed with sysrq j (or echo j > /proc/sysrq-trigger). Thawing only deals with bdev part, does not do anything about fsfreeze.

I went for the easiest fix possible: just thaw the super block. Doing it requires a little bit of refactoring in order to keep the sb locked the whole time.

The first patch moves sb iteration found in emergency remount to a dedicated func for code reuse. This patch patch is a no-op.

The second employs factored out code to do both bdev and sb thaws.

Mateusz Guzik (2):
vfs: factor sb iteration out of do_emergency_remount buffer.c: call thaw_super during emergency thaw

 fs/buffer.c        |  25 +------------
 fs/super.c         | 105 +++++++++++++++++++++++++++++++++++++++--------------
 include/linux/fs.h |   1 +
 3 files changed, 80 insertions(+), 51 deletions(-)
Signature · 1 line
1.8.3.1