From: Mateusz Guzik <mguzik@redhat.com>
To: Eric Sandeen <sandeen@redhat.com>, Al Viro <viro@zeniv.linux.org.uk>
Cc: mszeredi@redhat.com, linux-fsdevel@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] fix emergency unfreezing
Date: Tue, 3 Oct 2017 18:17:39 +0200 [thread overview]
Message-ID: <1507047461-14631-1-git-send-email-mguzik@redhat.com> (raw)
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
next reply other threads:[~2017-10-03 16:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-03 16:17 Mateusz Guzik [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1507047461-14631-1-git-send-email-mguzik@redhat.com \
--to=mguzik@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mszeredi@redhat.com \
--cc=sandeen@redhat.com \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®