From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 2E7EDC433B4 for ; Mon, 10 May 2021 03:36:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0D9FB60FE4 for ; Mon, 10 May 2021 03:36:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230151AbhEJDhM (ORCPT ); Sun, 9 May 2021 23:37:12 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:2608 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230127AbhEJDhM (ORCPT ); Sun, 9 May 2021 23:37:12 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Fdmqm1cWpzlcrQ; Mon, 10 May 2021 11:33:56 +0800 (CST) Received: from [127.0.0.1] (10.174.177.249) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.498.0; Mon, 10 May 2021 11:36:00 +0800 Subject: Re: [PATCH] e2fsprogs: Try again to solve unreliable io case From: Zhiqiang Liu To: Theodore Ts'o CC: Haotian Li , Ext4 Developers List , "harshad shirwadkar," , linfeilong References: <6bc8c1c2-9fff-bef9-c6f3-b2256a4888e1@huawei.com> Message-ID: Date: Mon, 10 May 2021 11:35:59 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <6bc8c1c2-9fff-bef9-c6f3-b2256a4888e1@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.174.177.249] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org friendly ping ... On 2021/4/24 12:46, Zhiqiang Liu wrote: > > On 2021/4/23 23:46, Theodore Ts'o wrote: >> On Fri, Apr 23, 2021 at 10:18:09AM +0800, Zhiqiang Liu wrote: >>> Thanks for your reply. >>> Actually, we have met the problem in ipsan situation. >>> When exec 'fsck -a ', short-term fluctuations or >>> abnormalities may occur on the network. Despite the driver has >>> do the best effort, some IO errors may occur. So add retrying in >>> e2fsprogs can further improve the reliability of the repair >>> process. >> But why doesn't this happen when the file system is mounted, and why >> is that acceptable? And why not change the driver to do more retries? >> >> - Ted >> > Actually, this may happen when the filesystem is mounted. The difference > is that the mounted filesystem can ensure the consistency with journal. > > For example, if the IO error occurs when calling io_channel_write_byte() > to update superblock, the checksum may be not written to the disk successfully. > Then the checksum error will occur, and the filesystem cannot be > repaired with 'fsck -y|a|f'. > > This situation has a very low probability. For improving the reliability of > the repair process, the retries in e2fsprogs may be necessary. > > Regards > Zhiqiang Liu. > >> . >> > > .