Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5621838pxu; Wed, 23 Dec 2020 00:51:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8d/jfYpeDksbxv9l+L1WDlzCRUJ2udIcLMa0QmOAaTgg/tBWtgeHKwp1uqI+OS9dCdQgy X-Received: by 2002:aa7:c78c:: with SMTP id n12mr24217890eds.363.1608713472942; Wed, 23 Dec 2020 00:51:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1608713472; cv=pass; d=google.com; s=arc-20160816; b=BES6B8hktcDOkyAyP21A7PCxVF+YqbslcB+/c8rCr8A3HOOPsaSAt/7kaRgyJXatpr P6OhAMVkB68bLC3vxM8Jm8k/VF6ENgyiBrw+TTJI6E96GjYKIyDe44H3LjWO1q/+gqQs fFl+1M9gUKSW92Ec3s03bhgsf36M1tptgVFnukITZ/AJk6aYiEa4ZnO7CJthYsasjFXn hwHaKJnNO/9yjCPxGMHiIPARcpbtXDRA1V0NRMikiGP1rAiSEmhEyDRKt2dASgBk6DYJ DlZROBA62VUqCMUQduu8mpOsYJOBLMzsPqtV3Kxt1yChCWerpxNftQ+nxTtDdnX83G5S l27Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:user-agent:date:message-id:from:references:cc:to :subject:dkim-signature; bh=LRfvTV37giQfaSscfZulevH5sau0KwSINn8GFODWwhQ=; b=TOy9YJLACVD8yk9VlhCprgNno+s0Y2GrFru+VSApwzVgmmEvFK0mO9fXPzdA2DvkOn ixbo0RqAg0e5I0E7GVffQqt1wk7wA5MA2DgqTElb/HWzARAc0pGxD4/IWTvJWOe/99bl OaFXYd57gqE87LG+5Ns7hg5jU/7+I8ZdCVx1i6bHNvXvyuw0uuOeq0/cX2Qc4GdeUg0z m4vYpKaZMtONC+w59NiUn5O6wOYzPAPpi/APN8V6vd4coiACPWSQmhusclRVkVdIpDhr SPWdJOVhrtj71uI/7xU9nUIr5W1aZbq5qJQ8o4eT6mqYRu3ES7YJFsOYxA4/2QTTq0OK V0IQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oppoglobal.onmicrosoft.com header.s=selector1-oppoglobal-onmicrosoft-com header.b=fbZB9Pkm; arc=pass (i=1 spf=pass spfdomain=oppo.com dkim=pass dkdomain=oppo.com dmarc=pass fromdomain=oppo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oppo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j17si12190530ejk.231.2020.12.23.00.50.48; Wed, 23 Dec 2020 00:51:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oppoglobal.onmicrosoft.com header.s=selector1-oppoglobal-onmicrosoft-com header.b=fbZB9Pkm; arc=pass (i=1 spf=pass spfdomain=oppo.com dkim=pass dkdomain=oppo.com dmarc=pass fromdomain=oppo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oppo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727734AbgLWIt7 (ORCPT + 99 others); Wed, 23 Dec 2020 03:49:59 -0500 Received: from mail-eopbgr1300055.outbound.protection.outlook.com ([40.107.130.55]:53312 "EHLO APC01-HK2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727050AbgLWIt6 (ORCPT ); Wed, 23 Dec 2020 03:49:58 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S0q8007rgjXA55GwJQVvJhZ/ikD+VpkvbNRdPWh0IDIpShQ0kpOO5I5xSgAXDLL4JMWPaKrqu1l+WGPDQLgxh0Q01Wzgfwfms91nCYySSdnn5vB3CyGB9i2D6BKMwvIhz6piwq9aU5SXvaZnkBhGiDL8nicRsAFScVaN3aVfpDKXKkgrKLketdV+k+RVfWMEJB2V5U+rXCCDr6qI7F+1WuyXokjs9uxLkyVazcnsN3v/x7bXeFt5jmxjYXjuAwQku/KaBlCORt96VxyOMwoNghHDwPFLMN9DAdZnbodoYizBPGFdB9cZHIVuqDwIELWN6G8Ql21LML/r/eMO/KYI5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LRfvTV37giQfaSscfZulevH5sau0KwSINn8GFODWwhQ=; b=ja88XwQr1qwKmzRpYWP1ZfOBGFlnHUQ3STxIBS2STjY21xoTs67RAktvyHwJoZnO9y18hhRbJipcaILgkUQuVwu0ZeUtqY1WvAy1itmm2qPQnuygGalz0aeR+8kc9mpbKTFhGmcMTrKcGSWlXaiyTj5TV3YthGSBXoNx80VBG+Y4mLEAvQ9dd6JsqV3eer5DvdOnyJTJdj3xzIU8XjQYgQJo78zVgHOfpdHrsSaMu2l2yhkUS/+u9xGmsdcMq51a41olrtD5oEXwZvuM45uvFtetPcsD1LDnFCG90wTw6tOPBgIq71VL2Uhen7ELFSXje7gmXY140wLh9EmMcASmbA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oppo.com; dmarc=pass action=none header.from=oppo.com; dkim=pass header.d=oppo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oppoglobal.onmicrosoft.com; s=selector1-oppoglobal-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LRfvTV37giQfaSscfZulevH5sau0KwSINn8GFODWwhQ=; b=fbZB9Pkm0YO00qfFmullFq+WCLChosUJKuzJjKCuZRvr5Uu0jJDf4KboWy9I0A+kCF2v30A7N0XzGH93bsdT7WQTdEaZTvPcN1C0WJnJQrUpcwGF/zp/tOO1Toufx+KrEFmqxZA7ZEbNfwABwa471KSKXTHUQuJmRmEfx4XCoH4= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=oppo.com; Received: from SG2PR02MB4108.apcprd02.prod.outlook.com (2603:1096:4:96::19) by SG2PR02MB4428.apcprd02.prod.outlook.com (2603:1096:0:8::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12; Wed, 23 Dec 2020 08:48:23 +0000 Received: from SG2PR02MB4108.apcprd02.prod.outlook.com ([fe80::dcd:13c1:2191:feb7]) by SG2PR02MB4108.apcprd02.prod.outlook.com ([fe80::dcd:13c1:2191:feb7%7]) with mapi id 15.20.3676.033; Wed, 23 Dec 2020 08:48:23 +0000 Subject: Re: [PATCH] erofs: support direct IO for uncompressed file To: Christoph Hellwig , Gao Xiang Cc: guoweichao@oppo.com, linux-erofs@lists.ozlabs.org, zhangshiming@oppo.com, linux-kernel@vger.kernel.org References: <20201214140428.44944-1-huangjianan@oppo.com> <20201222142234.GB17056@infradead.org> <20201222193901.GA1892159@xiangao.remote.csb> <20201223074455.GA14729@infradead.org> From: Huang Jianan Message-ID: Date: Wed, 23 Dec 2020 16:48:20 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 In-Reply-To: <20201223074455.GA14729@infradead.org> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [58.252.5.72] X-ClientProxiedBy: HK2PR02CA0220.apcprd02.prod.outlook.com (2603:1096:201:20::32) To SG2PR02MB4108.apcprd02.prod.outlook.com (2603:1096:4:96::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.118.0.32] (58.252.5.72) by HK2PR02CA0220.apcprd02.prod.outlook.com (2603:1096:201:20::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3700.27 via Frontend Transport; Wed, 23 Dec 2020 08:48:22 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 17e0e99c-00e6-446c-b073-08d8a71f81e5 X-MS-TrafficTypeDiagnostic: SG2PR02MB4428: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bL/zfSvMcVrLVCUvTCFKCVl4Ka6somg4WYtdACcLdMwZapRGuFkuUn6YE88mzxOvEJnu4yvC5bpnQVR/GV2Bz32jlk1oZuzhG+KcfDQ0Dbz7iB23F6NwozuJ93qkZkmNcj5q3siBaG2pM0akK9NZrHeUCnnk6A/1nHxbhZEK8+woDDmQGqg2TErgo6Ue2N86l2wZc/5cZxg36XsXNOQ4Jn1hzPzxtkEi4S5/49dHXD4SSVi8s57E7fgNtBoSSgzmXpShs2dgXuZP41+xXE+jisSSlEFc8WXo51/bDuhSsNAB9vVrVlo9vdNdp2s4oyQJRXLSuwPxIkRA1ebrZDKTz8JLgT+5Gqf76D1Svolh0h6+n/pYZn90BB/xy2KRpK/Pm0bt+rBUnnjuEgTiV+All/Tou4SUcsmafYW9aQ+8v4cKjFhRQFWBY7oOu9rG+JD9 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SG2PR02MB4108.apcprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(376002)(136003)(396003)(366004)(39860400002)(346002)(83380400001)(16576012)(66476007)(6486002)(31696002)(16526019)(4326008)(31686004)(2906002)(316002)(478600001)(186003)(5660300002)(26005)(36756003)(66556008)(2616005)(52116002)(86362001)(8936002)(66946007)(110136005)(956004)(8676002)(11606006)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?gb2312?B?NGZvWGZEUlNsY1hPcWxLUUswbkJyNG1wdGV0WnNaeGhxQnVQYmZURHFPQ1kv?= =?gb2312?B?TUxZUklGbGVadDlZbGtSMm51UzE3UzgwM3ZobFp0UlBidDdBT3grQnFSTENz?= =?gb2312?B?b3AveEcrZkwzaVB1UUN4bmdZQkI1TFBIbUJnN0ZxM0NlMFpReEtGRVdncHda?= =?gb2312?B?NlR4OGdjWS85NTU3TVR1MWFIKzYzR3lBM1czaWlycWRPZVkweGNjSVR0OE9n?= =?gb2312?B?cWhyWTJFL2NEbERkVUNRb0ZzbDl3Rk9WOXdKNnp1Qld6NjVDZ20rSUZiTDVJ?= =?gb2312?B?YkszaFlMQ1R0VWN3cThOd2g5L1RWNTlBV25rdy9zT0FzSGlDeW4zclowUDhO?= =?gb2312?B?MmJGY0VmZ25rdmkyTkZCM3puQzhhTFp0ZyszWjFrNVFPdjNDRmU4djdDOU83?= =?gb2312?B?Wk45Sm1TaDh3UWt5NDlqYkZvcC94UUNUOGE4Yk5lRC9MUkZlaExmREs5b0JL?= =?gb2312?B?WExOdE5HSytyTEYvQ0FBQXAzK0RDMWlBY1F3d3lKZ2QrYnF3YzlLRDV4SlRj?= =?gb2312?B?aHUxeE56NlBxVmFnZFZ6SzBrVDNNOVZCeEtKTDBNL2prRWF2UGVhUjFjRVZG?= =?gb2312?B?RHJtaEVUWUptdGRoUlJKR0VMM0JwdXRnL3dyMHFaempLMkttNG9NOEovT3Zk?= =?gb2312?B?Y0RFRWR1OS94YXlrMUhRc29QWi9neEFNUTlnMDY3c2lOMGNlT3pxb2VDMFdV?= =?gb2312?B?Z3NhdUp5VTdiUU9PVGROZE95MDZLZVN0UTdrZ1VMZ29UbUVOblpoak0vMDRw?= =?gb2312?B?eXVhTGNSWE8rR214UERRb2NlRW4yWmhNZVJSR3lwaU82SHdXUnc1NGx0cHpZ?= =?gb2312?B?YllicTBkZ25OU09vejQzc3dHeStxUHdsQkk0bFlMc28xUGZvdzRMMDVKRXpp?= =?gb2312?B?c3A0NkNpeWRPQnE4eXQrVU5SUDZmbHJ4T1V2TzE2b0JNaFoxQzQ1NW93WStr?= =?gb2312?B?WGdBOTUvRkw2U0R5cFNNbytONlRYSE5USnJLamdCUEE5MFU2WnJwZnZTMGJk?= =?gb2312?B?M0E5WWY1UWxOT1AyY200Mm1SMmZEdUFCNzF1U2xZVkpaNlZvZUp5QXdQZHJ4?= =?gb2312?B?c2NMMzUzeCtlQVBEdUtZUW9mdGwyWW53c05kcER6YW9ZU3RIZE5ET2ZUa01K?= =?gb2312?B?eDFyS2ZaZ1QzdnpzVG9IcE5CaGI1dG9FbGtvVkttOFBzZXEwNUJHVzNzYXg2?= =?gb2312?B?amNBMmhzY3R6VzVxS2U4ME1iK3ZubWdlcUo5K3EzcXBUY0FMdUlhVkRPODdp?= =?gb2312?B?MU9jMXJ2U3I1T1F5dUYxNjA0K0p5VWdWMlBzaXlSaU5nSG9renloSGlySGN4?= =?gb2312?Q?tFQfPstmZZ1zw=3D?= X-OriginatorOrg: oppo.com X-MS-Exchange-CrossTenant-AuthSource: SG2PR02MB4108.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Dec 2020 08:48:23.7184 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f1905eb1-c353-41c5-9516-62b4a54b5ee6 X-MS-Exchange-CrossTenant-Network-Message-Id: 17e0e99c-00e6-446c-b073-08d8a71f81e5 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: k/qCMAN2bdgeMegvozy0quoMyppIb9iWLyjulDB73vZUgPA81tveOFl4XErdwTJq0yT9naqwOV++b0ybYNvliw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR02MB4428 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christoph, The reason we use dio is because we need to deploy the patch on some early kernel versions, and we don't pay much attention to the change of iomap. Anyway, I will study the problem mentioned by Gao Xiang and try to convert the current patch to iomap. Thanks, Jianan > On Wed, Dec 23, 2020 at 03:39:01AM +0800, Gao Xiang wrote: >> Hi Christoph, >> >> On Tue, Dec 22, 2020 at 02:22:34PM +0000, Christoph Hellwig wrote: >>> Please do not add new callers of __blockdev_direct_IO and use the modern >>> iomap variant instead. >> We've talked about this topic before. The current status is that iomap >> doesn't support tail-packing inline data yet (Chao once sent out a version), >> and erofs only cares about read intrastructure for now (So we don't think >> more about how to deal with tail-packing inline write path). Plus, the >> original patch was once lack of inline data regression test from gfs2 folks. > So resend Chaos prep patch as part of the series switching parts of > erofs to iomap. We need to move things off the old infrastructure instead > of adding more users and everyone needs to help a little.