linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] fix emergency unfreezing
@ 2017-10-03 16:17 Mateusz Guzik
  2017-10-03 16:17 ` [PATCH 1/2] vfs: factor sb iteration out of do_emergency_remount Mateusz Guzik
  2017-10-03 16:17 ` [PATCH 2/2] buffer.c: call thaw_super during emergency thaw Mateusz Guzik
  0 siblings, 2 replies; 3+ messages in thread
From: Mateusz Guzik @ 2017-10-03 16:17 UTC (permalink / raw)
  To: Eric Sandeen, Al Viro; +Cc: mszeredi, linux-fsdevel, linux-kernel

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(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-10-03 16:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-03 16:17 [PATCH 0/2] fix emergency unfreezing Mateusz Guzik
2017-10-03 16:17 ` [PATCH 1/2] vfs: factor sb iteration out of do_emergency_remount Mateusz Guzik
2017-10-03 16:17 ` [PATCH 2/2] buffer.c: call thaw_super during emergency thaw Mateusz Guzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).