Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp131576rwi; Tue, 18 Oct 2022 15:15:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7isbOCY3+2K0wAISz1sYrZ0HRCjjxbVlP9JQJEQvriT4G2iD7rr7CA16KOs7mJcVB41HVw X-Received: by 2002:a17:90b:1b4f:b0:20d:363d:7943 with SMTP id nv15-20020a17090b1b4f00b0020d363d7943mr6062074pjb.106.1666131317264; Tue, 18 Oct 2022 15:15:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666131317; cv=none; d=google.com; s=arc-20160816; b=vMVYi2RjB0HOy1LKORSLae8gmBCnk/cSjmRB2tJo3r242v20hopHlhvCanjhzPUqSr SGIfaCZ805Q6axk8P8j7Lyho71gfu2qUP5nZ+/iwnBwur0xc8/0swWYILuQXB6s70Rzz IgJtiTsx5Q2On3toL/+pC5Aq9KTs81y0JDPKe3zQte8jZEf7ikeoTppCdm6JaXkSeko5 YQHXSnk0t8OK5t9CHh7919ep+W+G3Qtzaaci3wjbJZ4kg3X2vZzvjogaQyWqx00YddaU qRwI+EYxYG5X3L5usMlw39Hvo8uClNCcLlEyu0vaR61RudQKCRgsU0qZK6tN47BTM/e7 MVqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=HEA9AmhHRX1qmDL+FDyd+YOuTvnjYBNJnIjtbLD0tXk=; b=zcE8F7Gbp+ci93EDtXnsJkkTgqCo4Gg/czPJj9q+PQtWlZ0Z0uvcuBrZ1Fx2tvF/CR 8Wn+tB43YLX9AqfR5d64slDn3WilgnTv02B4AJ6ENoDHE3CKpBirLFMv3uoYIAni3R+S wg2fFpOOfpAcsXYXM4bLkJiyx81ZTviGio4xeBhtmRXTV51zkz4gBwWkS3dIyo5j2yhs 7OdY7ZH1rGU6aCSEE+iFkbc1C+uqnjTjATR5H2dNw3pGjdANcHkXUMsLHJl970GNSINI jpoCY+LaS1vTR3rJKHxKw3C7F1rLEMYrROTwcXEowmrC2FDpd6NupGWmiIkZjfDCaq4D B6cw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k3-20020a636f03000000b0044ed39c6858si15830884pgc.66.2022.10.18.15.15.04; Tue, 18 Oct 2022 15:15:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230095AbiJRV3b (ORCPT + 99 others); Tue, 18 Oct 2022 17:29:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229651AbiJRV3a (ORCPT ); Tue, 18 Oct 2022 17:29:30 -0400 Received: from out30-44.freemail.mail.aliyun.com (out30-44.freemail.mail.aliyun.com [115.124.30.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30C27636B for ; Tue, 18 Oct 2022 14:29:26 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VSXOP2U_1666128562; Received: from B-P7TQMD6M-0146.lan(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0VSXOP2U_1666128562) by smtp.aliyun-inc.com; Wed, 19 Oct 2022 05:29:24 +0800 Date: Wed, 19 Oct 2022 05:29:21 +0800 From: Gao Xiang To: "Fabio M. De Francesco" Cc: linux-erofs@lists.ozlabs.org, Chao Yu , LKML , ira.weiny@intel.com Subject: Re: [PATCH v2] erofs: use kmap_local_page() only for erofs_bread() Message-ID: References: <20221018105313.4940-1-hsiangkao@linux.alibaba.com> <9108233.CDJkKcVGEf@mypc> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <9108233.CDJkKcVGEf@mypc> X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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-kernel@vger.kernel.org Hi Fabio, On Tue, Oct 18, 2022 at 09:18:49PM +0200, Fabio M. De Francesco wrote: > On Tuesday, October 18, 2022 12:53:13 PM CEST Gao Xiang wrote: > > Convert all mapped erofs_bread() users to use kmap_local_page() > > instead of kmap() or kmap_atomic(). > > > > Signed-off-by: Gao Xiang > > --- > > fs/erofs/data.c | 8 ++------ > > fs/erofs/internal.h | 3 +-- > > fs/erofs/xattr.c | 8 ++++---- > > fs/erofs/zmap.c | 4 ++-- > > 4 files changed, 9 insertions(+), 14 deletions(-) > > > > I just realized that you know the code of fs/erofs very well. I saw a Gao > Xiang in MAINTAINERS, although having a different email address. > > Therefore, I'm sure that everybody can trust that you checked everything is > needed to assure the safety of the conversions. > > However, an extended commit message would have prevented me to send you the > previous email with all those questions / objections. Thanks for your suggestion. Yeah, this conversion looks trivial [since most paths for erofs_bread() don't have more restriction in principle so we can just disable migration. One of what I need to care is nested kmap() usage, some unmap/remap order cannot be simply converted to kmap_local() but I think it's not the case for erofs_bread(). Actually EROFS has one of such nested kmap() usage, but I don't really care its performance on HIGHMEM platforms, so I think kmap() is still somewhat useful compared to kmap_local() from this point of view], but in order to make it all work properly, I will try to do stress test with 32-bit platform later. Since it targets for the next cycle 6.2, I will do a full stress test in the next following weeks. Thanks, Gao Xiang > > Thanks, > > Fabio >