Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 24 Jul 2002 04:39:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 24 Jul 2002 04:39:26 -0400 Received: from samba.sourceforge.net ([198.186.203.85]:10709 "HELO lists.samba.org") by vger.kernel.org with SMTP id ; Wed, 24 Jul 2002 04:39:25 -0400 Date: Wed, 24 Jul 2002 14:40:18 +1000 From: Rusty Russell To: martin@dalecki.de Cc: dalecki@evision.ag, torvalds@transmeta.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] 2.5.27 spinlock Message-Id: <20020724144018.6a92d80a.rusty@rustcorp.com.au> In-Reply-To: <3D3BE36E.3090001@evision.ag> References: <3D3BE36E.3090001@evision.ag> X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; powerpc-debian-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1159 Lines: 30 On Mon, 22 Jul 2002 12:50:22 +0200 Marcin Dalecki wrote: > - Add missing _raw_write_trylock() definitions for the UP preemption case. > > - Replace tons of georgeous macros for the UP preemption case with > static inline functions. Much nicer to look at and more adequate then > ({ xxxx }) in this case. Martin, this patch is wrong, obvious from casual reading: > -#define spin_trylock_bh(lock) ({ int __r; local_bh_disable();\ > +#define spin_trylock_bh(lock) do { int __r; local_bh_disable();\ > __r = spin_trylock(lock); \ > if (!__r) local_bh_enable(); \ > - __r; }) > + __r; } while (0) I know you're smarter than this Martin 8) Rusty. PS. If you want them re-xmitted to Linus, send to trivial@rustcorp.com.au... -- there are those who do and those who hang on and you don't see too many doers quoting their contemporaries. -- Larry McVoy - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/