Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp592607pxu; Tue, 5 Jan 2021 21:49:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwMdy/KMSyDVM+4njGaCptWbqCFI/d0QSDg5/iL7htfaTugIk4vyA1OgFbyMnu750YcnX3C X-Received: by 2002:a05:6402:7d7:: with SMTP id u23mr2732433edy.325.1609912151586; Tue, 05 Jan 2021 21:49:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609912151; cv=none; d=google.com; s=arc-20160816; b=qocM8Ae91nNyKAUtEZt6FuV4UX4453U8ZBs48RisR6FeKXU/QOTGYuK+ccSXJXi0N5 zd9EICX00Mbbql+gF9W5a22O067e45Y2ODXrR+58WvYx0PmaR/FgbLwPnrw2cp09TzFd oclIW5FaMgmJFxk91mp/Mx1fetUuotwtk9AFFI5xCs4A86I5Tp+0WlOmk9okHcj4BtWu fMep5gimMTMXEzXXkG1LiFqx1MITGQTcSlLCcdOE6uZBCVghphOaWfkBUgKbPvINPwG0 z8TxFYkZwi2EeKT36KfHKyOH0KGab/fjUHSXw4bX2nTvZ5TF04G9USbUYonFhFQpZq+2 JBNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=mzYmKMW5qjDA6n3j+AWMeK3QSAUk2DA1awmhm6FMNzY=; b=rPE2jUVGNHzlQxU2fRJCVVkvtce7mCwcq9OZqDxX/a+NsV28u7lZtMtsCaGsaHUJn0 XkDGDX7TuOpTTg6VvnvWpD7it2tMQB2BMLswoZW3H00rCyqcYUCeGoEueUZCnfXC7eOt OjkBtDjhtLrkBHheIM+1jQlaFvOKGcMZCKIM1pN7JA/WMtLBOabG5XqDp9A3V9Yi8p1t KDLnWAj9thB+BGvEcT18bY77zrairZP98fG2xbsAo6A6MP3W1fiILS1nHpp3TDzuCQ86 srwbMyoPvtTwPSlCXT6y2craA/ijgQeRakgKJ7UcQp92/LincrEL1HeLnHDeuW/bq76Y s95Q== ARC-Authentication-Results: i=1; mx.google.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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x17si587667edq.298.2021.01.05.21.48.34; Tue, 05 Jan 2021 21:49:11 -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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725855AbhAFFqW (ORCPT + 99 others); Wed, 6 Jan 2021 00:46:22 -0500 Received: from mga07.intel.com ([134.134.136.100]:64079 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725562AbhAFFqW (ORCPT ); Wed, 6 Jan 2021 00:46:22 -0500 IronPort-SDR: u90VQLtF0Oh64b8NjT8YUbhE5gjh+LLdytZOfMubw0C857IDSqyhipwKvsYtd+mrJfTRqh5/Wx z/kSG/+t17cg== X-IronPort-AV: E=McAfee;i="6000,8403,9855"; a="241311437" X-IronPort-AV: E=Sophos;i="5.78,479,1599548400"; d="scan'208";a="241311437" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2021 21:45:40 -0800 IronPort-SDR: rgoReUgBBvCvxYUE8vN1aDRaoWCHJmtfXAc4NHgmtgqwTytax4xNeBGxb3/E7R/mZSGEnkDyzt Hh9YH81PQLxw== X-IronPort-AV: E=Sophos;i="5.78,479,1599548400"; d="scan'208";a="379160484" Received: from iweiny-desk2.sc.intel.com (HELO localhost) ([10.3.52.147]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2021 21:45:41 -0800 Date: Tue, 5 Jan 2021 21:45:41 -0800 From: Ira Weiny To: Hao Li Cc: corbet@lwn.net, davem@davemloft.net, gregkh@linuxfoundation.org, alexander.deucher@amd.com, mchehab+huawei@kernel.org, lee.jones@linaro.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] Documentation/dax: Update description of DAX policy changing Message-ID: <20210106054541.GR3097896@iweiny-DESK2.sc.intel.com> References: <20210106015000.5263-1-lihao2018.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210106015000.5263-1-lihao2018.fnst@cn.fujitsu.com> User-Agent: Mutt/1.11.1 (2018-12-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 06, 2021 at 09:50:00AM +0800, Hao Li wrote: > After commit 77573fa310d9 ("fs: Kill DCACHE_DONTCACHE dentry even if > DCACHE_REFERENCED is set"), changes to DAX policy will take effect > as soon as all references to this file are gone. > > Update the documentation accordingly. > > Signed-off-by: Hao Li LGTM Reviewed-by: Ira Weiny > --- > Changes in v2: > * simplify sentences and fix style problems. > > Documentation/filesystems/dax.txt | 17 +++-------------- > 1 file changed, 3 insertions(+), 14 deletions(-) > > diff --git a/Documentation/filesystems/dax.txt b/Documentation/filesystems/dax.txt > index 8fdb78f3c6c9..e03c20564f3a 100644 > --- a/Documentation/filesystems/dax.txt > +++ b/Documentation/filesystems/dax.txt > @@ -83,20 +83,9 @@ Summary > directories. This has runtime constraints and limitations that are > described in 6) below. > > - 6. When changing the S_DAX policy via toggling the persistent FS_XFLAG_DAX flag, > - the change in behaviour for existing regular files may not occur > - immediately. If the change must take effect immediately, the administrator > - needs to: > - > - a) stop the application so there are no active references to the data set > - the policy change will affect > - > - b) evict the data set from kernel caches so it will be re-instantiated when > - the application is restarted. This can be achieved by: > - > - i. drop-caches > - ii. a filesystem unmount and mount cycle > - iii. a system reboot > + 6. When changing the S_DAX policy via toggling the persistent FS_XFLAG_DAX > + flag, the change to existing regular files won't take effect until the > + files are closed by all processes. > > > Details > -- > 2.29.2 > > >