Received: by 10.223.164.221 with SMTP id h29csp3093927wrb; Fri, 3 Nov 2017 01:20:41 -0700 (PDT) X-Google-Smtp-Source: ABhQp+STIHT9uBGh8H18HycUdD17mg6vSvZVRR29JfXVkgdxR7Por/4XJe+NYDJ8qQ0qoJBQ5PlR X-Received: by 10.99.5.205 with SMTP id 196mr6436204pgf.419.1509697241320; Fri, 03 Nov 2017 01:20:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509697241; cv=none; d=google.com; s=arc-20160816; b=kuN1K+2KSuOP/KhLv3HS7jIfcnhleqfah64QSU2JRM6tuP55mLGtEQkjEqcQeEj3EV 9RUD956MKhG11sQAlJr9r3X+A5mXEWZHFRaePrcUBvgSCfF3emGFSDDOASY32PCwcsan OfsVFyghdIJcsQB7p+DtxGoZPN27BfMGr0ZK+W74cs3VjhyJWbQ/1OxtyCjnMgQ2QXuu w1R89HpucPzXq8SVE+DyQzKUdr5l02KXIngEYu53yFbXL4XW1b53Vh8/Rjvs+pWddizN 8t2ioQt+trOrsfxzeeSqU21yRgrz6PCZ31frTxuFHqi1BRUwgHR2yzcXAQ4ZNLVkVz6G PcKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=8/eV3bCwGx9JHGsLUfnFekCvqPBW3ph2svmrp9rvE88=; b=G1GCZ8dJ8Hdsl7gXQYOkWdsP9MmMjpDfltec5L8iaeHtIVAJS4riH5sp7NoLA5ABEZ jg3NxW+CxODQFd46rxa/VS3E4mlgmzDbOdswL/pTFlDlIY0x7N6rvj07yo9XSqcDtAq+ Gy9x4oZ/1yQwKTMDj7sYTf6UzNETsffjatLFxNknyxaSmxvoor9IZxVxUm9Ttzwp4pKX /O/i1BaUpaN/9Z/X4i2uFnNS/PqVKR7jpqi/hlx6Q63CgpMuooG3Y5tdCDT0qNb918zQ ZVMNRi81GmSfmX8v9RUK5mgX8StHFiDMUeiXxSyiwfrchXH+Kn+1X1BonkAB5/w0OL9V jJZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q13si5469375pgr.170.2017.11.03.01.20.23; Fri, 03 Nov 2017 01:20:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754624AbdKCITe convert rfc822-to-8bit (ORCPT + 96 others); Fri, 3 Nov 2017 04:19:34 -0400 Received: from mga07.intel.com ([134.134.136.100]:61700 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751960AbdKCITb (ORCPT ); Fri, 3 Nov 2017 04:19:31 -0400 Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP; 03 Nov 2017 01:19:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,337,1505804400"; d="scan'208";a="171490597" Received: from irsmsx104.ger.corp.intel.com ([163.33.3.159]) by fmsmga006.fm.intel.com with ESMTP; 03 Nov 2017 01:19:29 -0700 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.180]) by IRSMSX104.ger.corp.intel.com ([163.33.3.159]) with mapi id 14.03.0319.002; Fri, 3 Nov 2017 08:19:28 +0000 From: "Reshetova, Elena" To: Dave Chinner , Peter Zijlstra CC: "darrick.wong@oracle.com" , "linux-kernel@vger.kernel.org" , "linux-xfs@vger.kernel.org" , "keescook@chromium.org" Subject: RE: [PATCH 0/5] xfs refcount conversions Thread-Topic: [PATCH 0/5] xfs refcount conversions Thread-Index: AQHTSZTUz9fYd2XtRkWKd616yhL5h6LtUE2AgAQVH4CAEHs/gIAAhDoA Date: Fri, 3 Nov 2017 08:19:27 +0000 Message-ID: <2236FBA76BA1254E88B949DDB74E612B802B90AE@IRSMSX102.ger.corp.intel.com> References: <1508497678-10508-1-git-send-email-elena.reshetova@intel.com> <20171020232111.GT3666@dastard> <20171023134149.GD3165@worktop.lehotels.local> <20171103002305.GZ5858@dastard> In-Reply-To: <20171103002305.GZ5858@dastard> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNDVmNmFmNDctNWI1OC00ZjE1LWE4ODctNWFkMDA2M2IwNTUxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJOTnhUWHB2TmdUZEhpS1FTRkJMRDN2U0VXMHl3YlAwdFo4QzJsUmRPRkpyeDZraEVXSjVDNnB3UWxIdHlpa3poIn0= x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > [I missed this followup, other stuff] > > On Mon, Oct 23, 2017 at 03:41:49PM +0200, Peter Zijlstra wrote: > > On Sat, Oct 21, 2017 at 10:21:11AM +1100, Dave Chinner wrote: > > > On Fri, Oct 20, 2017 at 02:07:53PM +0300, Elena Reshetova wrote: > > > IMO, that makes it way too hard to review sanely for code that: > > > > > > a) we already know works correctly > > > > But how do you know if you have unknown ordering requirements? > > Because back when it was converted to atomic-based object reference > counts, I went through all the memory-barriers.txt stuff to make > sure it was OK. That was years ago, and I've forgotten it all and > the life-cycle constaints that lead us to use atomics in this > manner. > > Now, I've got to go determine what the difference between atomic and > refcounts are and work them out myself because nobody has documented > it. And I have to go look at all the commit logs to work out in that > has any effect on the objects using the atomics, because that's no > longer in my head. There probably isn't an issue here, but such > changes are not done without review, and that's what is needed to > review the change. > > That's the problem here - I have to work out what the differences in > ordering constraints between refcounts and atomics are myself > because it's not actually documented anywhere for reviewiers to > understand. That's a significant burden to put on a reviewer for > what is supposed to be a "no-op" change. The memory ordering changes are currently documented in refcount.c file itself, but I agree that we should try to provide more information. That's why we are having this separate thread now going and searching for suitable examples and more elaborate explanation. So, hopefully very soon we will end up with having what you are asking for. Best Regards, Elena. > > Cheers, > > Dave. > -- > Dave Chinner > david@fromorbit.com From 1583002314489261186@xxx Fri Nov 03 00:24:10 +0000 2017 X-GM-THRID: 1581775102950037022 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread