Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938696AbcJQRpO (ORCPT ); Mon, 17 Oct 2016 13:45:14 -0400 Received: from mail-bl2nam02on0103.outbound.protection.outlook.com ([104.47.38.103]:12416 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934571AbcJQRpH (ORCPT ); Mon, 17 Oct 2016 13:45:07 -0400 From: "Kani, Toshimitsu" To: "ross.zwisler@linux.intel.com" CC: "dan.j.williams@intel.com" , "viro@zeniv.linux.org.uk" , "linux-nvdimm@lists.01.org" , "linux-kernel@vger.kernel.org" , "akpm@linux-foundation.org" , "linux-fsdevel@vger.kernel.org" Subject: Re: [PATCH v2] DAX: enable iostat for read/write Thread-Topic: [PATCH v2] DAX: enable iostat for read/write Thread-Index: AQHSKJrRCx+SUa1F6Ue+SkLsEIABZ6Cs5vOAgAADw4A= Date: Mon, 17 Oct 2016 17:45:04 +0000 Message-ID: <1476726205.20881.72.camel@hpe.com> References: <1476724738-19133-1-git-send-email-toshi.kani@hpe.com> <20161017172957.GC25175@linux.intel.com> In-Reply-To: <20161017172957.GC25175@linux.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=toshi.kani@hpe.com; x-originating-ip: [15.219.163.9] x-ms-office365-filtering-correlation-id: 3d60c901-02c6-493a-ee53-08d3f6b55412 x-microsoft-exchange-diagnostics: 1;CS1PR84MB0005;7:bUFL4axn4TVJiYedjOGilZhko3GiWXeCJyx6hngPF1Hl9TqdTTr+wg9ZHSWo64iYExH+xl2/U9krVLL0OXQWogHcRkWuaMSymQt3S/CZBMx7m4uwPpKmJPUBpOVwWny4FlktbjKNJHWX32+Q3ZEy50Rd3oxMq24acFFdJ0vbWzXZmQqxMpYy3n/wlNppFxvenIVrVrzYjlFI/Ejgxh808RLCgIbmcfAMw2z1Wr/RTn3MU6XyLbk38QNloYqYgJgLwfPWS4af+PCekImzF5+BPR4gB0pnqYYsrW6ZG+WZDfroN1sK7zTpR1fbcuRpA3ikGR41QeJ2QnZjzopgmCzZ1zo3L0hUf/y3wW/gAGAyD3A= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CS1PR84MB0005; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(227479698468861)(278428928389397)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026);SRVR:CS1PR84MB0005;BCL:0;PCL:0;RULEID:;SRVR:CS1PR84MB0005; x-forefront-prvs: 0098BA6C6C x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(199003)(24454002)(189002)(377424004)(4001150100001)(106356001)(81156014)(8676002)(68736007)(7736002)(110136003)(103116003)(33646002)(3660700001)(3280700002)(8936002)(2351001)(2501003)(19580405001)(19580395003)(10400500002)(5660300001)(4326007)(6116002)(102836003)(3846002)(586003)(87936001)(76176999)(54356999)(36756003)(11100500001)(2950100002)(50986999)(6916009)(77096005)(101416001)(92566002)(7846002)(106116001)(105586002)(122556002)(189998001)(99286002)(2906002)(2900100001)(97736004)(5002640100001)(86362001)(305945005)(66066001)(81166006);DIR:OUT;SFP:1102;SCL:1;SRVR:CS1PR84MB0005;H:CS1PR84MB0005.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <7AA5AB08D4FFCF4D8118B3DF6ACF59C3@NAMPRD84.PROD.OUTLOOK.COM> MIME-Version: 1.0 X-OriginatorOrg: hpe.com X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Oct 2016 17:45:04.8461 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR84MB0005 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id u9HHjIwL004734 Content-Length: 1025 Lines: 29 On Mon, 2016-10-17 at 11:29 -0600, Ross Zwisler wrote: > On Mon, Oct 17, 2016 at 11:18:58AM -0600, Toshi Kani wrote: > > > > DAX IO path does not support iostat, but its metadata IO path does. > > Therefore, iostat shows metadata IO statistics only, which has been > > confusing to users. > > > > Add iostat support to the DAX read/write path. > > > > Note, iostat still does not support the DAX mmap path as it allows > > user applications to access directly. > > > > Signed-off-by: Toshi Kani > > Cc: Andrew Morton > > Cc: Alexander Viro > > Cc: Dan Williams > > Cc: Ross Zwisler > > --- > > v2: > > - Set a minimum of one sector (Dan Williams) > > What about Dave's feedback that this code just reimplements  > generic_start_io_acct() and generic_end_io_acct()? My bad. There was some issue in my email box and I just realized it. Please disregard this version...  Thanks, -Toshi