From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753354AbZK3WMx (ORCPT ); Mon, 30 Nov 2009 17:12:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752720AbZK3WMw (ORCPT ); Mon, 30 Nov 2009 17:12:52 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:36227 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752274AbZK3WMw (ORCPT ); Mon, 30 Nov 2009 17:12:52 -0500 Date: Mon, 30 Nov 2009 14:11:58 -0800 (PST) From: Linus Torvalds X-X-Sender: torvalds@localhost.localdomain To: Thomas Gleixner cc: Peter Zijlstra , Ingo Molnar , Christoph Hellwig , Nick Piggin , Linux Kernel Mailing List Subject: Re: [rfc] "fair" rw spinlocks In-Reply-To: Message-ID: References: <20091123145409.GA29627@wotan.suse.de> <20091130100041.GA29610@infradead.org> <20091130174638.GA9782@elte.hu> <1259616429.26472.499.camel@laptop> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 30 Nov 2009, Thomas Gleixner wrote: > > Yeah, forgot to mention sched.c, but that's solvable It should be fairly easy to add a few 'spin_lock(&tasklist_lock)' around stuff that really depended on exclusion from writers. That should _hopefully_ be the rare case. The biggest problem is that there will almost inevitably be things that get missed, and any races exposed by lacking locking will be _very_ hard to debug and trigger. So what I'd be worried about is not getting to a "practically working" state, but any really subtle cases that nobody really hits in practice. Linus