From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geert Uytterhoeven Subject: Re: [RFC][PATCH 01/31] locking: Flip arguments to atomic_fetch_or Date: Fri, 22 Apr 2016 13:09:38 +0200 Message-ID: References: <20160422090413.393652501@infradead.org> <20160422093923.095484070@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <20160422093923.095484070@infradead.org> Sender: linux-kernel-owner@vger.kernel.org To: Peter Zijlstra Cc: Linus Torvalds , Ingo Molnar , Thomas Gleixner , Will Deacon , Paul McKenney , boqun.feng@gmail.com, waiman.long@hpe.com, =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , "linux-kernel@vger.kernel.org" , Linux-Arch , Richard Henderson , Vineet Gupta , Russell King , Hans-Christian Noren Egtvedt , Miao Steven , Yoshinori Sato , Richard Kuo , Tony Luck , James Hogan , Ralf Baechle , David Howells , "James E.J. Bottomley" List-Id: linux-arch.vger.kernel.org On Fri, Apr 22, 2016 at 11:04 AM, Peter Zijlstra wrote: > All the atomic operations have their arguments the wrong way around; s/wrong/other/? > make atomic_fetch_or() consistent and flip them. BTW, there are a few other inconsistencies: atomic_add_unless() atomic_cmpxchg() atomic_inc_not_zero_hint() atomic_set() atomic_xchg git grep "\.*\" Gr{oetje,eeting}s, Geert From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f196.google.com ([209.85.213.196]:34827 "EHLO mail-ig0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753564AbcDVLJj (ORCPT ); Fri, 22 Apr 2016 07:09:39 -0400 MIME-Version: 1.0 In-Reply-To: <20160422093923.095484070@infradead.org> References: <20160422090413.393652501@infradead.org> <20160422093923.095484070@infradead.org> Date: Fri, 22 Apr 2016 13:09:38 +0200 Message-ID: Subject: Re: [RFC][PATCH 01/31] locking: Flip arguments to atomic_fetch_or From: Geert Uytterhoeven Content-Type: text/plain; charset=UTF-8 Sender: linux-arch-owner@vger.kernel.org List-ID: To: Peter Zijlstra Cc: Linus Torvalds , Ingo Molnar , Thomas Gleixner , Will Deacon , Paul McKenney , boqun.feng@gmail.com, waiman.long@hpe.com, =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , "linux-kernel@vger.kernel.org" , Linux-Arch , Richard Henderson , Vineet Gupta , Russell King , Hans-Christian Noren Egtvedt , Miao Steven , Yoshinori Sato , Richard Kuo , Tony Luck , James Hogan , Ralf Baechle , David Howells , "James E.J. Bottomley" , Michael Ellerman , Martin Schwidefsky , Rich Felker , "David S. Miller" , cmetcalf@mellanox.com, Max Filippov , Arnd Bergmann , dbueso@suse.de, Wu Fengguang Message-ID: <20160422110938.mCMdTAo4ccMJqlbWTPOsRyeOauMMX-Xgy6nhWTzsmHg@z> On Fri, Apr 22, 2016 at 11:04 AM, Peter Zijlstra wrote: > All the atomic operations have their arguments the wrong way around; s/wrong/other/? > make atomic_fetch_or() consistent and flip them. BTW, there are a few other inconsistencies: atomic_add_unless() atomic_cmpxchg() atomic_inc_not_zero_hint() atomic_set() atomic_xchg git grep "\.*\" Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds