Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1581789ybz; Thu, 23 Apr 2020 01:25:58 -0700 (PDT) X-Google-Smtp-Source: APiQypIH7WC/LXq2tYVcELeaQ25yLS/xWemFVYTTPtBivC57EmLPmhTpLp33ji2vRaUyDVoKOgC9 X-Received: by 2002:aa7:ca48:: with SMTP id j8mr1673548edt.328.1587630358778; Thu, 23 Apr 2020 01:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587630358; cv=none; d=google.com; s=arc-20160816; b=XashsNqVyJXyD7UVFxQmrbKzEwoFx/3gwZVrI+GZrwL698wdU3KFk+3jHnNrp5xa8t O3K/PD5YLzFIpHOJvK682moVQeZfjwnDdaxtBFCD8WNRAvGrDIlenJFQrMUERxMJSVHY eUpMAqUpKpFrIpOwR027DcD3DhaRh43+aCVSnV43oIiRaS8DnudIv/KlcV2sQkhgt4kT Iz/IwS+B7Gd10o8mGvJrK+mX4TNKDyEp+F/yvz3YeR3UEjQYBBhjcgoynM8XjyfnelXx VtnnFAHvNXyy2j2tF3j4FW1ej+nC7pRgGWqV+qaquUarmyyeZmOSUpSPAyjQOg9A0SU9 8f8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=AxR0WgTOkuZ2SqK6+UtztH6cnowgTaeeNpnp8g7H378=; b=R6m/YKoJMatF8g676Jkua0skHGRMdoMg/ksakQ7Z640jqpprLzn7ZpKMTQiNxlf9X+ M2OxJBdaGlvmxnKVhb+yCxEUP9uf7RSauezJXF8m/KkcT82LPcz3Kjxt8+zDVhktW9iq 2pBK+Dwl4eOlu1GKtK3Wl1uzWUMVx1KMhzehKRllk12Zq4A1J3WTpJBulLTh5PmVPIwD ySz0IFj0E2W6HB10165hcnfKn9KJmDpkjVLn7vRkdAsZhNKOxQCWavSV0D23dmXsAPT6 lmUXotyvzGXZv1/RbvoBHVLgKOqZdT1gCCIAJJVEW9LDZ79nLHvd/WVOswvMZ07BiRMJ Bo7g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oc19si923506ejb.487.2020.04.23.01.25.29; Thu, 23 Apr 2020 01:25:58 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725884AbgDWIY0 (ORCPT + 99 others); Thu, 23 Apr 2020 04:24:26 -0400 Received: from mx2.suse.de ([195.135.220.15]:60024 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725854AbgDWIYZ (ORCPT ); Thu, 23 Apr 2020 04:24:25 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 614CFAF79; Thu, 23 Apr 2020 08:24:23 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 731811E0E61; Thu, 23 Apr 2020 10:24:22 +0200 (CEST) Date: Thu, 23 Apr 2020 10:24:22 +0200 From: Jan Kara To: Ira Weiny Cc: "Darrick J. Wong" , linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, Dave Chinner , Jan Kara , Al Viro , Dan Williams , Dave Chinner , Christoph Hellwig , "Theodore Y. Ts'o" , Jeff Moyer , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH V9 03/11] fs/stat: Define DAX statx attribute Message-ID: <20200423082422.GA3737@quack2.suse.cz> References: <20200421191754.3372370-1-ira.weiny@intel.com> <20200421191754.3372370-4-ira.weiny@intel.com> <20200422162951.GE6733@magnolia> <20200422185121.GL3372712@iweiny-DESK2.sc.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200422185121.GL3372712@iweiny-DESK2.sc.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed 22-04-20 11:51:21, Ira Weiny wrote: > On Wed, Apr 22, 2020 at 09:29:51AM -0700, Darrick J. Wong wrote: > > On Tue, Apr 21, 2020 at 12:17:45PM -0700, ira.weiny@intel.com wrote: > > > From: Ira Weiny > > > > > > In order for users to determine if a file is currently operating in DAX > > > state (effective DAX). Define a statx attribute value and set that > > > attribute if the effective DAX flag is set. > > > > > > To go along with this we propose the following addition to the statx man > > > page: > > > > > > STATX_ATTR_DAX > > > > > > The file is in the DAX (cpu direct access) state. DAX state > > > attempts to minimize software cache effects for both I/O and > > > memory mappings of this file. It requires a file system which > > > has been configured to support DAX. > > > > > > DAX generally assumes all accesses are via cpu load / store > > > instructions which can minimize overhead for small accesses, but > > > may adversely affect cpu utilization for large transfers. > > > > > > File I/O is done directly to/from user-space buffers and memory > > > mapped I/O may be performed with direct memory mappings that > > > bypass kernel page cache. > > > > > > While the DAX property tends to result in data being transferred > > > synchronously, it does not give the same guarantees of O_SYNC > > > where data and the necessary metadata are transferred together. > > > > > > A DAX file may support being mapped with the MAP_SYNC flag, > > > which enables a program to use CPU cache flush instructions to > > > persist CPU store operations without an explicit fsync(2). See > > > mmap(2) for more information. > > > > One thing I hadn't noticed before -- this is a change to userspace API, > > so please cc this series to linux-api@vger.kernel.org when you send V10. > > Right! Glad you caught me on this because I was just preparing to send V10. > > Is there someone I could directly mail who needs to look at this? I guess I > thought we had the important FS people involved for this type of API change. > :-/ I believe we have all the important people here. But linux-api is a general fallback list where people reviewing API changes linger. So when changing user facing API, it is good to CC this list. Honza -- Jan Kara SUSE Labs, CR