Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp198647imd; Wed, 31 Oct 2018 17:18:17 -0700 (PDT) X-Google-Smtp-Source: AJdET5dJHGtJiXoW/CkeDHro/yXv0mYA23Zn5+ffnmuH4E0yx6k+uM7iadavwS75BVw8PYMbDWcq X-Received: by 2002:a63:d70e:: with SMTP id d14mr2376038pgg.159.1541031497748; Wed, 31 Oct 2018 17:18:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541031497; cv=none; d=google.com; s=arc-20160816; b=lqYmMiry+Bb1lsnLKRnWV5dR5SoVVO/4gyZNWHnqKvUszm1gzFdpgnjFX26VKe4E3A H77WgloRgyXX5diy2xY3gK4wBBe5AOqRWOLYej3ldbfTDQ60P1Y3cyjNDcKUXk2hkCKp ++gjk1uo1X/pzosZe8gBRAysCfkpD6DXipaIndm+SEsMaUd2ifR53GwZRTAiPUPd2jET NQm6W8dqpjeur65/EzCqUfaLte1skq3Xwdi2KGsAUUvBgRcSx5Tor/JAlknN4Wm5DprC Fuew12TaSrHHwYOcXFUrS8vs/aZ+GRAsiftNfXzoaIsYDkYGD315FYSp5FR5TC5EXict vEmg== 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 :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=SA/kaxRjXr5BaWEe02Uq60tzOEPUY/KvDbehGtrBqlg=; b=uh4aTD7nmsuPueQanbXimtY97peoWvT0OUdxPRB4bri2SHUQbGMRLwTzkapkTDDFKx JwHMU9cH345rMQ9B+MYSwr0/yTGKtYgVvus5B1iX/zkrP7ZANA10PXqdgTRhPNfIaNa7 D/FcLBBd/M9v9L/ZzLgZCvo5BwiZLWHM3rPgGnm1oGSLabh2Pv7Ya43X0MmNgvCPh0Ao 3fgjljlmDiWQa7F4+s8fw+CsjolQg2luYwhpZ8NRgsqN3juY39Tu4i/TGHb6d6DzN5I0 BMwSfd3CavleexTR7unsSI04hTyzEoJxqm/94bZy/4VnbmKQlBXW1FaAvuy/nO7SUtJ2 +pDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hammerspace.com header.s=selector1 header.b="L8jj/f7e"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hammerspace.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i64si2381202pge.361.2018.10.31.17.18.02; Wed, 31 Oct 2018 17:18:17 -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; dkim=pass header.i=@hammerspace.com header.s=selector1 header.b="L8jj/f7e"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hammerspace.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726520AbeKAJSK (ORCPT + 99 others); Thu, 1 Nov 2018 05:18:10 -0400 Received: from mail-eopbgr720131.outbound.protection.outlook.com ([40.107.72.131]:18578 "EHLO NAM05-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725970AbeKAJSK (ORCPT ); Thu, 1 Nov 2018 05:18:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hammerspace.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SA/kaxRjXr5BaWEe02Uq60tzOEPUY/KvDbehGtrBqlg=; b=L8jj/f7euq8//tVFk6kjSCZHT15rB7KZlCltmTEMLQ6+JYTt3vgzzNyV9XeMbfjYjYGOh01+4r22uCOLm2/lbi6X4mFfU9OELN/xhFAZhq7XFu2tbyJa9c4BxPtPBrcDs+wcM322rTrw7haluBQCoSH5wdxJ2D8Lzt8/CAVkTDM= Received: from SN6PR13MB2494.namprd13.prod.outlook.com (52.135.95.148) by SN6PR13MB2240.namprd13.prod.outlook.com (52.135.93.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.13; Thu, 1 Nov 2018 00:17:32 +0000 Received: from SN6PR13MB2494.namprd13.prod.outlook.com ([fe80::205a:69c2:1cf5:b475]) by SN6PR13MB2494.namprd13.prod.outlook.com ([fe80::205a:69c2:1cf5:b475%3]) with mapi id 15.20.1294.021; Thu, 1 Nov 2018 00:17:32 +0000 From: Trond Myklebust To: "linux@roeck-us.net" , "paul.burton@mips.com" CC: "linux-kernel@vger.kernel.org" , "ralf@linux-mips.org" , "jlayton@kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "bfields@fieldses.org" , "linux-mips@linux-mips.org" , "linux-nfs@vger.kernel.org" , "akpm@linux-foundation.org" , "anna.schumaker@netapp.com" , "jhogan@kernel.org" , "netdev@vger.kernel.org" , "davem@davemloft.net" , "arnd@arndb.de" , "paulus@samba.org" , "mpe@ellerman.id.au" , "benh@kernel.crashing.org" Subject: Re: [RFC PATCH] lib: Introduce generic __cmpxchg_u64() and use it where needed Thread-Topic: [RFC PATCH] lib: Introduce generic __cmpxchg_u64() and use it where needed Thread-Index: AQHUcVNDmGGj0g6AA0y1ofQdOo8K7KU5392AgAAIbYCAABkRAIAADIkA Date: Thu, 1 Nov 2018 00:17:31 +0000 Message-ID: <4e2438a23d2edf03368950a72ec058d1d299c32e.camel@hammerspace.com> References: <1541015538-11382-1-git-send-email-linux@roeck-us.net> <20181031213240.zhh7dfcm47ucuyfl@pburton-laptop> <20181031220253.GA15505@roeck-us.net> <20181031233235.qbedw3pinxcuk7me@pburton-laptop> In-Reply-To: <20181031233235.qbedw3pinxcuk7me@pburton-laptop> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=trondmy@hammerspace.com; x-originating-ip: [68.40.195.73] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;SN6PR13MB2240;6:ZdIxH/NNyq4Sx4mS9KcyQ9bb4l7/mJ99NBhsN3z/Qaiuw0LaxFQYc7H/aulkw3NRHiYTycIfqVTRa3Pcy/k6ODsLUKzkW6vx9fk43utO7sUJzTzai6b0q0Ue1IsZvkQpdLBew3kGBG2DWYqPL1BhkKDl2uG2AmKh3eu5AWw6adFXakmUsPbhFlLCJNipcre7BgP1Ql2jcLkuhvGGDGx8HRPsjI1i6Rth6pH+ZUIONyGKr1F3uZEDpXYYopVG/QE3ZX77XzDypPXpVrx9+e8sr86M/r8lB5+wF7tzNnrKlFCVbtFh7/tyLgryiz72mpG0d5hm7hBrvSdoRjyJ6mwMpZiY0WkN73ItlTF32DoVTCPAdNmSR6h5rJ1zYM8Xf9Lzu0AlSpF3MunBb6Q2+84BbfFv+HPpe/xyDCAsRdHCqGMUNV4tVp2KtL/FG3D4CcUKLUZ2r9GUEndO1ZXWVfg2hw==;5:7bMKekBVet5oRl/h5DWw/zj/+8tgbhdvjv8TLuyYZ9mjWcIBXEsAuc4z2932rq+WBj4LYr70mKCs/eQUrbEj5WHtosN47LaBHEj+UHSELGN1fyORRiM6iaIMKPAyDt45J6QLOmawdXxIZ34l6ruphnwlTvq3oaQp/jPqGREObCQ=;7:fhqPtZreLeSiWpaySsqv6YAgBC0El9qET4KOvm99XnC+Ae5AymJOMaIBoRUR/SEbSZc21O5Hz138KhVEkRCFVixGR103qgsExYokHVGhgtNpQHuFzhrISlUgDOW9NpzeRBOlvLXKa3oFGUvvB6LPAQ== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: f3a8f48b-fa4a-4a14-e4c4-08d63f8f6aa4 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:SN6PR13MB2240; x-ms-traffictypediagnostic: SN6PR13MB2240: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231382)(944501410)(52105095)(148016)(149066)(150057)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095);SRVR:SN6PR13MB2240;BCL:0;PCL:0;RULEID:;SRVR:SN6PR13MB2240; x-forefront-prvs: 0843C17679 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(979002)(346002)(136003)(376002)(39830400003)(366004)(396003)(199004)(189003)(4001150100001)(81166006)(81156014)(6486002)(478600001)(53936002)(68736007)(105586002)(6436002)(4326008)(102836004)(6306002)(76176011)(99286004)(6512007)(8676002)(8936002)(66066001)(7416002)(6506007)(86362001)(5250100002)(305945005)(7736002)(6246003)(36756003)(2501003)(5660300001)(26005)(14444005)(106356001)(93886005)(15974865002)(2906002)(446003)(71190400001)(2616005)(11346002)(186003)(110136005)(71200400001)(316002)(25786009)(476003)(2900100001)(118296001)(256004)(966005)(6116002)(486006)(54906003)(14454004)(97736004)(3846002)(229853002)(41533002)(21314003)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1102;SCL:1;SRVR:SN6PR13MB2240;H:SN6PR13MB2494.namprd13.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: hammerspace.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 4QHe6B6LWWJdwfL3trInNxCaUcbebzVK8SVy0RiKPmAGpnvoGdBoVzPxo2GO/uA2OP1KzDlfwySWR6fA8rK9+FDeWp3DxVSuHz4al6JTVVZeS372r1HuACCuQ61MKy5V0cL8lRHSpf5F2RinbkYJUT+TXwAXm/Qygy4W+G7x6zoSn3dTLumEDzXKeFP9VxK1vxxBEHp1OMJMtA8YgS7XwOiHsZZcnk0tPkvjXVDDXckPS5aDEGt0PqIMt8vQJ7gtgvD1hoGejdGzVBXfvyY6wQPCfbaprTT2uEHe7AmNR+QVsiQTfG4I8F1nhzjE1qQx4DdBwuMuO8AaF/mgNLp7diy9iTLPamx0FgPXuEhI9YA= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <2DC2E59D54857A4C9E6FD81F927F5E22@namprd13.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: hammerspace.com X-MS-Exchange-CrossTenant-Network-Message-Id: f3a8f48b-fa4a-4a14-e4c4-08d63f8f6aa4 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Nov 2018 00:17:31.9767 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0d4fed5c-3a70-46fe-9430-ece41741f59e X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR13MB2240 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgUGF1bCwNCg0KT24gV2VkLCAyMDE4LTEwLTMxIGF0IDIzOjMyICswMDAwLCBQYXVsIEJ1cnRv biB3cm90ZToNCj4gKENvcHlpbmcgU3VuUlBDICYgbmV0IG1haW50YWluZXJzLikNCj4gDQo+IEhp IEd1ZW50ZXIsDQo+IA0KPiBPbiBXZWQsIE9jdCAzMSwgMjAxOCBhdCAwMzowMjo1M1BNIC0wNzAw LCBH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