Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C5B5C54E94 for ; Mon, 23 Jan 2023 15:42:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232837AbjAWPmV (ORCPT ); Mon, 23 Jan 2023 10:42:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232827AbjAWPmS (ORCPT ); Mon, 23 Jan 2023 10:42:18 -0500 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B427C2B09E for ; Mon, 23 Jan 2023 07:42:11 -0800 (PST) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-87-3IbaZKCYO-KMWW2A3FYeeA-1; Mon, 23 Jan 2023 15:42:09 +0000 X-MC-Unique: 3IbaZKCYO-KMWW2A3FYeeA-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.45; Mon, 23 Jan 2023 15:42:08 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.045; Mon, 23 Jan 2023 15:42:08 +0000 From: David Laight To: 'Uros Bizjak' CC: Andrew Morton , Linus Torvalds , Mateusz Guzik , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] lib/genalloc: use try_cmpxchg in {set,clear}_bits_ll Thread-Topic: [PATCH] lib/genalloc: use try_cmpxchg in {set,clear}_bits_ll Thread-Index: AQHZK4esPiXIxoxXL0qMusgAkdAn7q6lrzIwgAZxyoCAAARj8A== Date: Mon, 23 Jan 2023 15:42:08 +0000 Message-ID: References: <20230118150703.4024-1-ubizjak@gmail.com> <20230118131825.c6daea81ea1e2dc6aa014f38@linux-foundation.org> <913c01d41f824fa8b3400384437fa0d8@AcuMS.aculab.com> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogVXJvcyBCaXpqYWsNCj4gU2VudDogMjMgSmFudWFyeSAyMDIzIDE1OjA1DQo+IA0KPiBP biBUaHUsIEphbiAxOSwgMjAyMyBhdCAxOjQ3IFBNIERhdmlkIExhaWdodCA8RGF2aWQuTGFpZ2h0 QGFjdWxhYi5jb20+IHdyb3RlOg0KPiA+DQo+ID4gPiBCVFc6IFJlY2VudGx5LCBpdCB3YXMgZGV0 ZXJtaW5lZCBbMV0gdGhhdCB0aGUgdXNhZ2Ugb2YgY3B1X3JlbGF4KCkNCj4gPiA+IGluc2lkZSB0 aGUgY21weGNoZyBsb29wIGNhbiBiZSBoYXJtZnVsIGZvciBwZXJmb3JtYW5jZS4gV2UgYWN0dWFs bHkNCj4gPiA+IGhhdmUgdGhlIHNhbWUgc2l0dWF0aW9uIGhlcmUsIHNvIHBlcmhhcHMgY3B1X3Jl bGF4KCkgc2hvdWxkIGJlIHJlbW92ZWQNCj4gPiA+IGluIHRoZSBzYW1lIHdheSBpdCB3YXMgcmVt b3ZlZCBmcm9tIHRoZSBsb2NrcmVmLg0KPiA+DQo+ID4gSSdtIG5vdCBzdXJlIHlvdSBjYW4gZXZl ciB3YW50IGEgY3B1X3JlbGF4K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