Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp733496rwd; Wed, 31 May 2023 04:52:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4xmwsz50J7Ld0W5kMssxTIegaIkFpaqzbL2zb+F9kURD+aVW0BMLb7fjrEJtgw8Wfd8oYl X-Received: by 2002:a05:6a00:198c:b0:63b:7119:64a9 with SMTP id d12-20020a056a00198c00b0063b711964a9mr6809292pfl.16.1685533957300; Wed, 31 May 2023 04:52:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685533957; cv=none; d=google.com; s=arc-20160816; b=N0X3F8iQ89w+kl+Nx451NKmXVvT9xauboz1NHJ9qTYv8/U+AsapjKxRv6b8gvHv+zC w4cYuTqsnO5VUMpMEo2NKcKxWQKqrervQb4zlv87XatDk2DdNFNPc2qmMxXwcHG38A5M Pkl6gZqdIQb+EKK7AS+0Z7SPXSy7rh8sdz0O3Ah+XdHo49JTSb3sav4QrM8g6QNcaH6U VTPBUqSSr4VFZ67RrFl0yLFwNyVTEiTPtvgroJqpn9NtWmPKYUJ55EPaWTJkb71m5Nha CufkcyuRxa8DlNegw2SC+HwLeZ7KZj7fJnweAYtmRjqyS3wya3Vbpu9cD63v3oy4LcxQ T8fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=obYE/69S2YlPCR9i1ipv0YU/4lTv84eHqNMhjoGiFKg=; b=fGGxYVQazyxdfQujdGskCekE2vQd43Sj4ZAjjrOg15v0HWhBaN722+4sWMuckXwj3R xSsufWU0+geX32xVD6IIEpR7uSSR5kVuRFzBKg086gQvexSZKCd91nt9BnbMHzOe6Blk QiLeFqNaWEygqnhK+Ksi29zZ29F47t95PNNsus50ubKamooDjxQIgiCh7G6+YzDexmLt KCZ1qDthCkeyQBX5ljuAZUXsWz60c2EZ4etNlkfim2erBus04kq1ahS/K/T0XJUkLEX9 vQQm0WD05nPHrv0yMN2FOv5SeElw3W3tlBT/MT8a20aRHOyu2GhWiwX+wp/HNZs86itH eVDg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k26-20020aa79d1a000000b0064f78c32b85si847402pfp.390.2023.05.31.04.52.22; Wed, 31 May 2023 04:52:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235627AbjEaLvS (ORCPT + 99 others); Wed, 31 May 2023 07:51:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235591AbjEaLvQ (ORCPT ); Wed, 31 May 2023 07:51:16 -0400 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21B80184 for ; Wed, 31 May 2023 04:51:11 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4QWSJq0X3bz4f3kKt for ; Wed, 31 May 2023 19:51:07 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.104.170]) by APP2 (Coremail) with SMTP id Syh0CgA33eqkNHdkE8UXKg--.13786S4; Wed, 31 May 2023 19:51:06 +0800 (CST) From: Zhang Yi To: linux-ext4@vger.kernel.org Cc: tytso@mit.edu, adilger.kernel@dilger.ca, jack@suse.cz, yi.zhang@huawei.com, yi.zhang@huaweicloud.com, yukuai3@huawei.com, chengzhihao1@huawei.com Subject: [PATCH 0/5] jbd2: fix several checkpoint inconsistent issues Date: Wed, 31 May 2023 19:50:55 +0800 Message-Id: <20230531115100.2779605-1-yi.zhang@huaweicloud.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: Syh0CgA33eqkNHdkE8UXKg--.13786S4 X-Coremail-Antispam: 1UD129KBjvdXoW7Xr47Xr1kGF1kAr1UZw4Dtwb_yoWfurX_Ca y8tFZ8G3s2qF1UAFs3Ar17JrnrCa1fGF15ZF1ktrW7Crn3Ar4UG3Z5ArsIqw1xXayq9ryD JryrCrWFqrnFqjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbz8FF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j 6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwCF04k20xvY0x0EwIxG rwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4 vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IY x2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26c xKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x02 67AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjfUoOJ5UUUUU X-CM-SenderInfo: d1lo6xhdqjqx5xdzvxpfor3voofrz/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org From: Zhang Yi Hello, The first three patches are from [1] and are not changed, appending another two (it depends on the first three) to fix another three race issues in the checkpoint procedure which could also lead to inconsistent results. [1] https://lore.kernel.org/linux-ext4/20230516020226.2813588-1-yi.zhang@huaweicloud.com/ Thanks, Yi. Zhang Yi (4): jbd2: recheck chechpointing non-dirty buffer jbd2: remove t_checkpoint_io_list jbd2: remove released parameter in journal_shrink_one_cp_list() jbd2: fix a race when checking checkpoint buffer busy Zhihao Cheng (1): jbd2: Fix wrongly judgement for buffer head removing while doing checkpoint fs/jbd2/checkpoint.c | 186 +++++++++++------------------------------- fs/jbd2/commit.c | 3 +- fs/jbd2/transaction.c | 4 +- include/linux/jbd2.h | 9 +- 4 files changed, 55 insertions(+), 147 deletions(-) -- 2.31.1