From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763373AbYEGR2f (ORCPT ); Wed, 7 May 2008 13:28:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754119AbYEGR2X (ORCPT ); Wed, 7 May 2008 13:28:23 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:38240 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753203AbYEGR2V (ORCPT ); Wed, 7 May 2008 13:28:21 -0400 Date: Wed, 7 May 2008 10:27:59 -0700 (PDT) From: Linus Torvalds To: Andrew Morton cc: Matthew Wilcox , Ingo Molnar , "J. Bruce Fields" , "Zhang, Yanmin" , LKML , Alexander Viro , linux-fsdevel@vger.kernel.org Subject: Re: AIM7 40% regression with 2.6.26-rc1 In-Reply-To: <20080507101624.5524d3c1.akpm@linux-foundation.org> Message-ID: References: <1210052904.3453.30.camel@ymzhang> <20080506114449.GC32591@elte.hu> <20080506120934.GH19219@parisc-linux.org> <20080506162332.GI19219@parisc-linux.org> <20080506102153.5484c6ac.akpm@linux-foundation.org> <20080507163811.GY19219@parisc-linux.org> <20080507101624.5524d3c1.akpm@linux-foundation.org> User-Agent: Alpine 1.10 (LFD 962 2008-03-14) 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 Wed, 7 May 2008, Andrew Morton wrote: > On Wed, 7 May 2008 10:08:18 -0700 (PDT) Linus Torvalds wrote: > > > Which is why I'm 100% convinced it's not even worth saving the old code. > > It needs to use mutexes, or spinlocks. I bet it has *nothing* to do with > > "slow path" other than the fact that it gets to that slow path much more > > these days. > > Stupid question: why doesn't lock_kernel() use a mutex? Not stupid. The only reason some code didn't get turned over to mutexes was literally that they didn't want the debugging because they were doing intentionally bad things. I think the BKL is one of them (the console semaphore was another, iirc). Linus