From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752309AbdJCQSW (ORCPT ); Tue, 3 Oct 2017 12:18:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44516 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752105AbdJCQRs (ORCPT ); Tue, 3 Oct 2017 12:17:48 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 58B267EA9D Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=mguzik@redhat.com From: Mateusz Guzik To: Eric Sandeen , Al Viro 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 Message-Id: <1507047461-14631-1-git-send-email-mguzik@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Tue, 03 Oct 2017 16:17:48 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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