Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp978286pxy; Thu, 22 Apr 2021 19:18:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFaEXlExNuvQeDOovh1OtFN18gzgjxSBZ1Mlp99tiJyDZ1xKFsHnGjSiwgq0edTKdzsjc3 X-Received: by 2002:a63:1c54:: with SMTP id c20mr1654579pgm.210.1619144334554; Thu, 22 Apr 2021 19:18:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619144334; cv=none; d=google.com; s=arc-20160816; b=XGhqzb8rD8/bkCkDK4AEo/stqtUNpUxf5vr/99G/aihcMx05fhfH4nUZiO983LZsZA tHnDCRy8MSfyE950oMsg4Kp3+3h8HPb3u/wWvQPpMJqt7IDeO8//F39xCnmPistide57 JUsMNUFgzTeM/m5WU6I55C3TR+KGkuptknZYyb8de/QE3vBD6SplXn7LED/u1JoE2dMJ CXHn0hkwe2e0x9rRuOZz0/3vRNvVkNbn+W1/dK//tK7w1aKtA/hmGEjAQBZuEGKHW8k/ bpjHvUoMKfq9C/dX+zLdAwIbAo8G1Fqb7RoseEl0I43G1n60jhF7DXexUq+QdKI+1dJn pEhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=n7rY+yxGP9zNAffVZRh9FmUVs5fEoAZDzMySqfttR0Y=; b=PkrRVdlZILMR8slPQkAJssF3QnpYAqPmbJBsDqtlJUy5w/iE73/9JLxBsq9/yCMPAv zkJ/61lEhKdtPi6a0HbMM1mXjy1UQjA7p2zFnOupu1CJGdEZLDfvXjE1Idz8gC4rnhes EEXcVY5rugWxggwJHdiL1LrDRb+keX4aalNoh1jpdeB3YtTn2v27B/0Y/eGxMxTkqIt1 H1FELEhRnuozvwX8rjhAlNaA8zCrsz5qfGzSzUSoz2EypxCNrJHRxpMbGJ6tFW5dq6Tg Gughy8zbrCCzckj3+8cA0sPT+by/275lryAzc8GRtbQEwInbn3qOL2KKTBOtwWG+j14X jH4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h3si5077441pjt.24.2021.04.22.19.18.35; Thu, 22 Apr 2021 19:18:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236407AbhDWCS5 (ORCPT + 99 others); Thu, 22 Apr 2021 22:18:57 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:17028 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236041AbhDWCS4 (ORCPT ); Thu, 22 Apr 2021 22:18:56 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FRHtr4FhkzPtX3; Fri, 23 Apr 2021 10:15:16 +0800 (CST) Received: from [127.0.0.1] (10.174.176.216) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Fri, 23 Apr 2021 10:18:10 +0800 Subject: Re: [PATCH] e2fsprogs: Try again to solve unreliable io case To: Theodore Ts'o , Haotian Li CC: Ext4 Developers List , "harshad shirwadkar," , linfeilong References: From: Zhiqiang Liu Message-ID: Date: Fri, 23 Apr 2021 10:18:09 +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: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.176.216] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 2021/4/21 0:19, Theodore Ts'o wrote: > On Tue, Apr 20, 2021 at 03:18:05PM +0800, Haotian Li wrote: >> If some I/O error occured during e2fsck, for example the >> fibre channel connections are flasky, the e2fsck may exit. >> Try again in these I/O error cases may help e2fsck >> successfully execute and fix the disk correctly. > > Why not fix this by retrying in the device driver instead? If the > Fibre Channel is that flaky, then it's going to be a problem when the > file system is mounted, so it would seem to me that fixing this in the > kernel makes a lot more sense. > > - Ted > 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. Regards Zhiqiang Liu > . >