Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1081718ybl; Tue, 3 Dec 2019 01:08:47 -0800 (PST) X-Google-Smtp-Source: APXvYqyxtIKpVZOqd4ipvry/0aFzuToS/Cz9VCvnNquOT8yfplI5NDi7OpadP8MjK9rDM5nZOMlf X-Received: by 2002:a9d:798e:: with SMTP id h14mr2310103otm.257.1575364127049; Tue, 03 Dec 2019 01:08:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575364127; cv=none; d=google.com; s=arc-20160816; b=D9Ge6mkqT0YqYbQ8I8yPTlgXuZVFJUp/+ArL1EnDK2voW/yjjYcCtmYVcSCb//i1+h Y2hfDdZ78SOLL5rgOe4fHQesQbohtO9w2Wsn1gtcuqTfQfhjNdbPQfjoGKsZj49yQJk8 0lVdFsN6jZ0/DaDR2Kvo9DC1P2Ih1yp2cGqGyhRfUU95gSjPRr8H6YPIfqIBlci6uIXG BaTN/gxiD4vtVYfziDheU4GzVnJMh5Got+0m7gNlpFQjGkrkE1xClMyyo2DJWUxwgv7F xVkRh8PfrhLg3wWYscmcAynYGPdWge7rUS7L34iq3iBOPWRt8kLPfWEHYefk5X/9t5Ei id6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=Tlrd0iLM7oEQiNGTzLG71vcXbzwK31uUez+wm4UF1lQ=; b=QiyNNqFUcUjHuHvWeAJGy9J0XhzqsD5UC60KdhZtq2bp35D960Da/UFuRk9X2uBvHJ Tk47fQZr55DtjAw1KromH1FtOec3L7+a0FFQnTT36OJoHvFv3QiQhNQpLwTFRoc6iZnm e9cHcnMlLFm/t5wio1/E9rkMR72CH3HH3leg8/3iP8ZdAgrp8zV/bsXX/aQh9tg7eS4a R6mBFEi7sn8XEOVaaktSzhSH65IgqurSb22OiDR8O93Wxe9MGQEfWaf1sHowqh7DwRXR 5BJ4faJZ6mCynujPjSAr28jOUI2Fd7XHzdtMec22L+35eQDP/dGIfhIbDGQ7O4mBUS4p M5PA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v24si953049oiv.45.2019.12.03.01.08.36; Tue, 03 Dec 2019 01:08:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726074AbfLCJGz (ORCPT + 99 others); Tue, 3 Dec 2019 04:06:55 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:32968 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725773AbfLCJGy (ORCPT ); Tue, 3 Dec 2019 04:06:54 -0500 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id D6BCE349C0354685C63D; Tue, 3 Dec 2019 17:06:52 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.439.0; Tue, 3 Dec 2019 17:06:44 +0800 From: "zhangyi (F)" To: CC: , , , , , Subject: [PATCH v2 0/4] ext4, jbd2: improve aborting progress Date: Tue, 3 Dec 2019 17:27:52 +0800 Message-ID: <20191203092756.26129-1-yi.zhang@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi, This series originally aim to fix ext4_handle_error() and ext4_abort() cannot panic because of we invoke __jbd2_journal_abort_hard() when we failed to submit commit record without setting JBD2_REC_ERR flag. I add patch 1 and patch 4 to switch to use jbd2_journal_abort() and do some cleanup job at this iteration as Jan suggested. I also add patch 3 to partially revert commit 818d276ceb8 "ext4: Add the journal checksum feature" because it seems unnecessary, but I am not quite sure. please revirew this series and give some suggestions. Thanks, Yi. zhangyi (F) (4): jbd2: switch to use jbd2_journal_abort() when failed to submit the commit record ext4, jbd2: ensure panic when journal aborting with zero errno Partially revert "ext4: pass -ESHUTDOWN code to jbd2 layer" jbd2: clean __jbd2_journal_abort_hard() and __journal_abort_soft() fs/ext4/ioctl.c | 4 +- fs/ext4/super.c | 4 +- fs/jbd2/commit.c | 4 +- fs/jbd2/journal.c | 108 +++++++++++++++---------------------------- include/linux/jbd2.h | 4 +- 5 files changed, 45 insertions(+), 79 deletions(-) -- 2.17.2