Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937585AbWLFT5n (ORCPT ); Wed, 6 Dec 2006 14:57:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S937583AbWLFT5n (ORCPT ); Wed, 6 Dec 2006 14:57:43 -0500 Received: from smtp.osdl.org ([65.172.181.25]:34737 "EHLO smtp.osdl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937578AbWLFT5l (ORCPT ); Wed, 6 Dec 2006 14:57:41 -0500 Date: Wed, 6 Dec 2006 11:56:55 -0800 (PST) From: Linus Torvalds To: Matthew Wilcox cc: Al Viro , Christoph Lameter , Russell King , David Howells , Andrew Morton , linux-arm-kernel@lists.arm.linux.org.uk, Linux Kernel Mailing List , linux-arch@vger.kernel.org Subject: Re: [PATCH] WorkStruct: Implement generic UP cmpxchg() where an arch doesn't support it In-Reply-To: Message-ID: References: <20061206164314.19870.33519.stgit@warthog.cambridge.redhat.com> <20061206190828.GE4587@ftp.linux.org.uk> <20061206192939.GX3013@parisc-linux.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 708 Lines: 19 On Wed, 6 Dec 2006, Linus Torvalds wrote: > > Your problem will be, of course, that any architecture that does this in > hardware will just DoTheRightThing, and as such, broken architectures with > bad locking primitives will have to test and do source-level analysis > more. (The underlying thread here being that the workqueue stuff _should_ be safe in this regard. But the "testing will not catch bugs like these is certainly true in general) Linus - 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/