Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp510617pxb; Tue, 15 Feb 2022 20:18:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzvxzzvzhMvHpaxSXlSzXXKcbKHiIGyjGtKTclFN5oVbUYmYcs9/Ivn40OyfjiRZt37HEy8 X-Received: by 2002:a17:90a:e7ca:b0:1b9:66c8:982c with SMTP id kb10-20020a17090ae7ca00b001b966c8982cmr8091394pjb.30.1644985102274; Tue, 15 Feb 2022 20:18:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644985102; cv=none; d=google.com; s=arc-20160816; b=iSPAwSB6cHvcp6vKCmBUdWHOa2RAHrXSciCorraRtAggXcw81eJ7SYWIC4CE6RpMSl OZ3jEKcTAEA1vVRBMte1l3tNEzu/4U4ZL5TijSWe7qiX5CzNorsKBHVrduoOlYdFKrIs aR4PffaBj3tneOwlkgljO4/ioqfZ/tdPWITExQSS4fqfhtAilU09K/nG5Ithwng7wNqk 0nqa7eDohY9jnVa5SfSdSJ7EtCr/5wn8SSDK5xAZm/Zuq27cywdgMdqs7QiDgulC997I y1KZfNjhM2LufLQQocLd/eoy76rY0fpZI4H65L1ntWzT0A6wRH+mDh3AtrEdn5IwVAjt BwfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id :ironport-hdrordr:ironport-data; bh=7/35/OsyB0Ox5XCObpH+GWJ8CbJMaUWK1FfjP58DKbk=; b=HxzNa33WX79P5H8PR27Ap/JRS2wMn/q8H8psloqQbf0k2E7apHm/GE4veygbVZqXNZ BCVcEYlZISGJvFW9MBeGqnbZ66PtZOR41ojgagQIAMwZvpUGjIPDW/J6enishQP7Zcc5 vY1wVNZOVUW++ZbZJEO36WOdEliIgp86l5DbddNjvsH7t89FEiJO8Rw4OTEeKXL9RXYN bGqTc9neUd2TRFTNpELyuYb2O9p8uyeN3MClWZzCl19rOFPLSV8JGiI+0SYId7IU5ZFy SToOJKmw0B7iuLDCX+hIj2BlVYyOt36f6TyEzl99aOdbv+pQoBisbJgOtmaiyQaPeSjP RWYQ== 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=fujitsu.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 132si4590555pgb.394.2022.02.15.20.18.06; Tue, 15 Feb 2022 20:18:22 -0800 (PST) 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=fujitsu.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343976AbiBPDCm (ORCPT + 99 others); Tue, 15 Feb 2022 22:02:42 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238733AbiBPDCm (ORCPT ); Tue, 15 Feb 2022 22:02:42 -0500 Received: from heian.cn.fujitsu.com (mail.cn.fujitsu.com [183.91.158.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5D06B67367; Tue, 15 Feb 2022 19:02:30 -0800 (PST) IronPort-Data: =?us-ascii?q?A9a23=3AVyhoJaxH54bFJIxjJOt6t+dIxyrEfRIJ4+MujC/?= =?us-ascii?q?XYbTApDhwhGNUyWAdWTrVPf+CYWugc9AkPd7lphwGusPUm9ZnHQtv/xmBbVoQ9?= =?us-ascii?q?5OdWo7xwmQcns+qBpSaChohtq3yU/GYRCwPZiKa9kfF3oTJ9yEmj/nSHuOkUYY?= =?us-ascii?q?oBwgqLeNaYHZ44f5cs75h6mJYqYDR7zKl4bsekeWGULOW82Ic3lYv1k62gEgHU?= =?us-ascii?q?MIeF98vlgdWifhj5DcynpSOZX4VDfnZw3DQGuG4EgMmLtsvwo1V/kuBl/ssIti?= =?us-ascii?q?j1LjmcEwWWaOUNg+L4pZUc/H6xEEc+WppieBmXBYfQR4/ZzGhhc14zs5c85K2U?= =?us-ascii?q?hsBMLDOmfgGTl9TFCQW0ahuoeWefCjl65PJp6HBWz62qxl0N2k6NJMZ9s55G2Z?= =?us-ascii?q?L8uYSKSxLZReG78q2y7KTS+9inM0vIcDneoQFtRlIwTjfS/RgXpHHR6TD4MRw3?= =?us-ascii?q?TEsi8QIFvHbD+IVayVoahvoYBBVPFoTTpUkk4+Agnj5bi0drVe9prQ+6GuVyxZ?= =?us-ascii?q?+uJDrLtbUf9miQcROgl3eomPA4nS/DhwEXPSfwjqt9mmwwOPC9Qv5UYQfUra46?= =?us-ascii?q?9ZtmlSYwmFVAxoTPXO/oP+kmguwQN5SNUEQ0jQhoLJ090GxSNT5GRqirxasuh8?= =?us-ascii?q?aRsoVEOAg7gyJ4rTb7hzfBWUeSDNFLts8u6ceQT0sy0/Mj93yLSJgvafTSn+H8?= =?us-ascii?q?LqQ6zSoNkAowcUqDcMfZVJdpYC9/8do1VSSJuuP2ZWd1rXdcQwcCRjQxMTmu4g?= =?us-ascii?q?usA=3D=3D?= IronPort-HdrOrdr: =?us-ascii?q?A9a23=3ATw3XBqNG1Rzw+sBcTv2jsMiBIKoaSvp037BL?= =?us-ascii?q?7TEUdfUxSKGlfq+V8sjzqiWftN98YhAdcLO7Scy9qBHnhP1ICOAqVN/MYOCMgh?= =?us-ascii?q?rLEGgN1+vf6gylMyj/28oY7q14bpV5YeeaMXFKyer8/ym0euxN/OW6?= X-IronPort-AV: E=Sophos;i="5.88,333,1635177600"; d="scan'208";a="121582272" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 16 Feb 2022 11:02:28 +0800 Received: from G08CNEXMBPEKD05.g08.fujitsu.local (unknown [10.167.33.204]) by cn.fujitsu.com (Postfix) with ESMTP id 2F6C64D169D8; Wed, 16 Feb 2022 11:02:27 +0800 (CST) Received: from G08CNEXCHPEKD09.g08.fujitsu.local (10.167.33.85) by G08CNEXMBPEKD05.g08.fujitsu.local (10.167.33.204) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Wed, 16 Feb 2022 11:02:26 +0800 Received: from [192.168.22.28] (10.167.225.141) by G08CNEXCHPEKD09.g08.fujitsu.local (10.167.33.209) with Microsoft SMTP Server id 15.0.1497.23 via Frontend Transport; Wed, 16 Feb 2022 11:02:26 +0800 Message-ID: <905fd72a-d551-4623-f448-89010b752d0e@fujitsu.com> Date: Wed, 16 Feb 2022 11:02:26 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH v10 5/9] fsdax: Introduce dax_load_page() To: Dan Williams CC: Linux Kernel Mailing List , linux-xfs , Linux NVDIMM , Linux MM , linux-fsdevel , "Darrick J. Wong" , david , Christoph Hellwig , Jane Chu , Christoph Hellwig References: <20220127124058.1172422-1-ruansy.fnst@fujitsu.com> <20220127124058.1172422-6-ruansy.fnst@fujitsu.com> From: Shiyang Ruan In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-yoursite-MailScanner-ID: 2F6C64D169D8.A1823 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: ruansy.fnst@fujitsu.com X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 在 2022/2/16 9:34, Dan Williams 写道: > On Thu, Jan 27, 2022 at 4:41 AM Shiyang Ruan wrote: >> >> The current dax_lock_page() locks dax entry by obtaining mapping and >> index in page. To support 1-to-N RMAP in NVDIMM, we need a new function >> to lock a specific dax entry > > I do not see a call to dax_lock_entry() in this function, what keeps > this lookup valid after xas_unlock_irq()? I am not sure if I understood your advice correctly: You said dax_lock_entry() is not necessary in v9[1]. So, I deleted it. [1]: https://lore.kernel.org/linux-xfs/CAPcyv4jVDfpHb1DCW+NLXH2YBgLghCVy8o6wrc02CXx4g-Bv7Q@mail.gmail.com/ -- Thanks, Ruan.