Message ID | 5611c936-5913-d570-36a4-2b2ed209cd88@gmail.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 407D2C433DB for <stable@archiver.kernel.org>; Fri, 1 Jan 2021 14:59:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0060A221E9 for <stable@archiver.kernel.org>; Fri, 1 Jan 2021 14:59:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727047AbhAAO7G (ORCPT <rfc822;stable@archiver.kernel.org>); Fri, 1 Jan 2021 09:59:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726747AbhAAO7D (ORCPT <rfc822;stable@vger.kernel.org>); Fri, 1 Jan 2021 09:59:03 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB379C061573 for <stable@vger.kernel.org>; Fri, 1 Jan 2021 06:58:22 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id f14so6187818pju.4 for <stable@vger.kernel.org>; Fri, 01 Jan 2021 06:58:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:autocrypt:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=1jJ4DIg1DG4CUX5hD4mUZaQR31ZbEgSz1zvnTJMfNbY=; b=Je3+/nByf2iaJKOUmfes55E9uqc6yGGoNUXWECzveEss79abu6tsQuRprFdQtQYfoz RNmr+79tfn3aXf2LraFMLdhzBQf4KvcHqTmNOAOTQ7QrwaNWb0Dise29QqvFCUd7aC5Q ojK1nlKNqMDFlZELzpWEp6rBWfrI8bERBaAoX7coeOWxhDu0BHALhvNfTk9lWEWFb8Ts 54eOBQonnybsxX1EJRNXQ86tzP2CYzzU2OUUfusquB+fdIxBhzitiX/mZfC+RckTEFcc vxIU5tNVO1IZiq25RGZkT/U3DQI5olm3fFvC58f4ochmC7zeaMNEXl1alH/mim3ustD8 7EcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=1jJ4DIg1DG4CUX5hD4mUZaQR31ZbEgSz1zvnTJMfNbY=; b=Eg0W4MrOGsOjEcVRd/L7CeaPspFuxPdbvgMA6poP+SYU3YwLSYgZ56gJTkp82mtqYK IGt0Wt9WKrmN4KgX14MZnwcX1H6Uu/XYiaFJYKwfDMP5/cCKUMWWkc4/QFnMv61YeKbY KeQ3zQQdrIlSmJKuEgSrv0Pf4wYyqlup/NtgU4+2Hp7vWEhz/szLIVQODV8AYWpLcILZ GVRsLPpLBkPqpK6AaXR2Y6yZlZTEsAZrWpnOf75o+JELitpINU9VG5iUiRfpgKDi9U1R rOX/NpL2W7xVo8NdfeZBXCZXL1nReXllnD7MleMpXTYU4qibrmwJ6yJkC9RIhzzWqaH9 WgdA== X-Gm-Message-State: AOAM531y8CZyb8pd7lF9UyW8i4oFPGHz+9fVvUrXIxyOBoTdK1slqIkw w79UxuxloEXSqNGxxT3WruklZYLyDBug+g== X-Google-Smtp-Source: ABdhPJxYm6O5p327OWe/MI9gujkGNw4rfMBnct8RTBoWrglgqLidzUZs/tgnCJCDz7B8BzUD8CBwxA== X-Received: by 2002:a17:902:ab8b:b029:da:f377:e7d7 with SMTP id f11-20020a170902ab8bb02900daf377e7d7mr41398616plr.4.1609513102166; Fri, 01 Jan 2021 06:58:22 -0800 (PST) Received: from [127.0.0.1] ([118.34.233.180]) by smtp.gmail.com with ESMTPSA id y69sm48567019pfb.64.2021.01.01.06.58.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Jan 2021 06:58:21 -0800 (PST) From: Jinoh Kang <jinoh.kang.kr@gmail.com> Subject: [PATCH 5.4 bp] ext4: don't remount read-only with errors=continue on reboot To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Jan Kara <jack@suse.cz>, Andreas Dilger <adilger@dilger.ca>, Theodore Ts'o <tytso@mit.edu>, stable@vger.kernel.org References: <16091470451704@kroah.com> Autocrypt: addr=jinoh.kang.kr@gmail.com; keydata= xsFNBF/Q7MUBEADVIU6g5ui3gcTQV9jbneUb6xdUQJtEDOWG6pThD+nKAwQFYtZpCUSWgGVg osMQTyZu7HpEMvxoYNmO+1ZHtARugq2tl6BH11vEJgTsoF8IFrgyXNlinS+Kq6I8s6py96Pl Fk2b9Y3ok64DJUrmFjfgCAxO0RY/ZFS1vXMqibExzMLODTChrXal0Z9tjxQBkARPXeDmVg8c qW0121/3ODyi04jri34f5luRQe2PMJsqKAmd6Ok9zNkvc3wQZw7t3MiMEJjf1/eZa/He4OoI CO0zQY9dRhQBqgO67lnVziCRfRb4WCHxO03zE7C8ud/UOmuMM4Qh8rAyW3sJ2TbIqwvQepuc vC/Q+Av0GtuUCArUw4GbOibUDxhe1eTZViIYAghkzOxUWeDs1PXRPVnRu6PAGsQP39/2ZPAB wune9t2SEs4o2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RsppjrL8HCxF0rz6/LKnUCPC71/dfBIrIigYeBdK9UkNXAq/5c Nv8WeK9sQ0q6RmWqnT1HwyCBsVRR18k6XBM= Message-ID: <5611c936-5913-d570-36a4-2b2ed209cd88@gmail.com> Date: Fri, 1 Jan 2021 14:58:16 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0 MIME-Version: 1.0 In-Reply-To: <16091470451704@kroah.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
[5.4,bp] ext4: don't remount read-only with errors=continue on reboot
|
expand
|
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 920658ca8777..06568467b0c2 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -455,19 +455,17 @@ static bool system_going_down(void) static void ext4_handle_error(struct super_block *sb) { + journal_t *journal = EXT4_SB(sb)->s_journal; + if (test_opt(sb, WARN_ON_ERROR)) WARN_ON_ONCE(1); - if (sb_rdonly(sb)) + if (sb_rdonly(sb) || test_opt(sb, ERRORS_CONT)) return; - if (!test_opt(sb, ERRORS_CONT)) { - journal_t *journal = EXT4_SB(sb)->s_journal; - - EXT4_SB(sb)->s_mount_flags |= EXT4_MF_FS_ABORTED; - if (journal) - jbd2_journal_abort(journal, -EIO); - } + EXT4_SB(sb)->s_mount_flags |= EXT4_MF_FS_ABORTED; + if (journal) + jbd2_journal_abort(journal, -EIO); /* * We force ERRORS_RO behavior when system is rebooting. Otherwise we * could panic during 'reboot -f' as the underlying device got already